Function at 0x10067180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
mov esi, dword [ebx + 8]
xor edi, edi
mov eax, dword [ebx]
add esi, 0x28
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esi
mov dword [ebx + 0x14], esi
call fcn.10038290
add esp, 8
cmp dword [ebx + 0x5c], 7
jne 0x100671cd
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x1e], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x61]
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], al
cmp al, 1
jne 0x10067264
mov eax, dword [ebx + 8]
add eax, 0x168
mov dword [ebp - 0x1c], eax
test byte [eax + 0x1c], 0x10
je 0x10067200
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 4]
shr edx, 2
mov dword [ebp - 0x10], edx
jmp 0x10067202
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp edx, 2
jl 0x10067246
lea eax, [edx - 1]
xor ebx, ebx
mov dword [ebp - 0x18], eax
xor edx, edx
mov esi, eax
mov eax, dword [edi + ecx*4]
add ebx, dword [eax + 4]
mov eax, dword [edi + ecx*4 + 4]
add ecx, 2
add edx, dword [eax + 4]
cmp ecx, esi
jl 0x10067223
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
cmp ecx, edx
jge 0x10067256
mov eax, dword [edi + ecx*4]
mov ecx, dword [ebx + 0x1c]
add ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebx + 0x58]
lea eax, [edx + 1]
mov dword [ebx + 0x58], eax
cmp edx, ecx
jge 0x100675bb
cmp byte [ebp - 1], 2
jne 0x1006728a
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4], 0x8a
mov ecx, dword [ebp - 8]
jne 0x10067264
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xe0], 0
je 0x100672cf
mov eax, dword [str.interrupted]
mov ecx, str.unknown_error
test eax, eax
mov dword [ebx + 0x5c], 9
mov esi, 1
cmovne ecx, eax
lea eax, [ebx + 0x38]
push ecx
push 0x10094370
push dword [ebp - 0xc]
push eax
call fcn.10059fd0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jge 0x100672db
mov eax, dword [ebx + 4]
jmp 0x100672fa
sub edx, eax
xor ecx, ecx
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x100672f5
inc ecx
sub edx, eax
mov eax, dword [edi + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x100672e8
mov eax, dword [edi + ecx*4]
mov eax, dword [eax]
cmp byte [ebx + 0x61], 1
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4]
mov eax, 4
mov dword [ebp + 8], ecx
jne 0x100673c3
mov word [esi + 0x1c], ax
mov eax, edx
cdq
mov dword [esi + 0x10], eax
mov eax, 0xa02
mov byte [esi + 0x1e], 1
mov dword [esi + 0x14], edx
mov word [esi + 0x44], ax
movzx eax, byte [ecx]
mov ecx, dword [eax*4 + 0x100956b8]
mov eax, ecx
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x10067351
cmp byte [ecx], 0
je 0x1006734a
inc eax
cmp byte [eax], 0
jne 0x10067344
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x46], 0x103
add esi, 0x50
cmp byte [eax + 1], 0xee
jne 0x100673c3
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
lea edx, [eax + 4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x18], edx
test ecx, ecx
jle 0x10067392
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
cmp dword [edi + eax*4], edx
je 0x1006738f
inc eax
cmp eax, ecx
jl 0x10067385
mov edx, dword [ebp - 0x18]
cmp eax, ecx
jne 0x100673c3
mov edi, dword [ebp - 0x1c]
push 1
push edx
push edi
call fcn.10067c40
add esp, 0xc
test eax, eax
jne 0x100673c3
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x18]
or word [edi + 0x1c], 0x10
mov dword [edi + 0x18], eax
mov edi, dword [ebp + 8]
mov ecx, 4
mov word [esi + 0x1c], cx
push 0
push 0x20
mov eax, dword [edi + 4]
mov byte [esi + 0x1e], 1
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov word [esi + 0x44], cx
mov eax, dword [edi + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x46], 1
mov word [esi + 0x6c], cx
mov eax, dword [edi + 0xc]
cdq
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], 1
add esi, 0x78
push esi
call fcn.10067c40
add esp, 0xc
test eax, eax
jne 0x100671c1
push 0x20
push dword [esi + 4]
mov eax, 0x602
push edi
mov word [esi + 0x1c], ax
call fcn.100263b0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x10067511
test eax, eax
jne 0x1006748a
test byte [esi + 0x1c], 0x40
je 0x1006745c
mov edx, dword [esi + 0x10]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xac]
mov dword [edx + 0x3c], eax
mov dword [ecx + 0xac], edx
test byte [esi + 0x1c], 0x20
je 0x1006746d
push dword [esi + 0x10]
call fcn.10057520
add esp, 4
mov ax, word [esi + 0x1c]
mov ecx, 0xbf01
and ax, cx
mov byte [esi + 0x1e], 5
or ax, 1
mov word [esi + 0x1c], ax
jmp 0x10067534
mov ecx, dword [esi]
test ecx, ecx
je 0x10067495
mov ecx, dword [ecx + 0x48]
jmp 0x1006749a
mov ecx, 0x3b9aca00
xor edi, edi
test ecx, ecx
js 0x100674ab
cmp byte [edi + eax], 0
je 0x100674ab
inc edi
cmp edi, ecx
jle 0x100674a0
xor eax, eax
push esi
cmp eax, fcn.10045340
jne 0x100674d4
call fcn.100680a0
push dword [esi + 0x24]
push dword [esi]
call fcn.10045340
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov eax, 0x202
jmp 0x100674f5
call fcn.100680a0
push dword [esi + 0x24]
push dword [esi]
call fcn.10045340
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, 0xa02
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov word [esi + 0x1c], ax
mov word [esi + 0x1e], 0x103
jmp 0x10067534
mov eax, ecx
test ecx, ecx
je 0x1006752d
cmp byte [ecx], 0
je 0x10067526
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x10067520
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], 1
mov byte [esi + 0x1e], 3
add esi, 0x28
cmp byte [ebx + 0x61], 1
jne 0x10067590
push 0
push 4
push esi
call fcn.10067c40
add esp, 0xc
test eax, eax
jne 0x100671c1
mov eax, 0x602
mov dword [esi + 0x18], 2
mov word [esi + 0x1c], ax
movzx eax, byte [edi + 3]
push eax
push str._.2x
push dword [esi + 4]
push 3
call sym.YJK_SQL.dll_sqlite3_snprintf
mov word [esi + 0x1e], 0x103
mov eax, 1
add esp, 0x10
mov word [esi + 0x44], ax
mov byte [esi + 0x46], 5
movzx eax, byte [ebx + 0x61]
mov ecx, 2
dec ax
mov dword [ebx + 0x5c], 0
sub cx, ax
mov esi, 0x64
pop edi
shl cx, 2
mov eax, esi
pop esi
mov word [ebx + 0x30], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x65
mov dword [ebx + 0x5c], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret