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

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x42], 1
push esi
jne 0x1003f1d6
mov dl, byte [ebp + 0x40]
test dl, 2
je 0x1003f1d6
cmp byte [ebp + 0x45], 0
je 0x1003f1d6
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x30]
mov ecx, dword [ebp + 0x14]
cmp eax, esi
jne 0x1003f1b3
cmp ecx, dword [esp + 0x34]
jne 0x1003f1b3
mov eax, dword [esp + 0x3c]
pop esi
mov dword [eax], 0
xor eax, eax
pop ebp
add esp, 0x1c
ret
test dl, 8
je 0x1003f1d6
cmp ecx, dword [esp + 0x34]
jg 0x1003f1d6
jl 0x1003f1c4
cmp eax, esi
jae 0x1003f1d6
mov ecx, dword [esp + 0x3c]
pop esi
mov dword [ecx], 0xffffffff
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1003f1ef
mov eax, esi
call fcn.100297d0
mov dword [esp + 0xc], eax
mov byte [esi + 7], 0
jmp 0x1003f1f7
mov dword [esp + 0xc], 0
mov eax, ebp
call fcn.1003ef10
test eax, eax
jne 0x1003f556
cmp byte [ebp + 0x42], al
jne 0x1003f21b
mov edx, dword [esp + 0x3c]
pop esi
mov dword [edx], 0xffffffff
pop ebp
add esp, 0x1c
ret
mov ecx, 1
sub ecx, dword [esp + 0x38]
push ebx
mov dword [esp + 0x1c], ecx
push edi
lea ebx, [ebx]
movsx eax, byte [ebp + 0x44]
mov ebx, dword [ebp + eax*4 + 0x78]
movzx esi, word [ebx + 0x12]
dec esi
mov dword [esp + 0x18], esi
sar esi, cl
cmp dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov word [ebp + eax*2 + 0x50], si
jne 0x1003f350
jmp 0x1003f260
mov eax, dword [ebx + 0x40]
mov ax, word [eax + esi*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x44]
cmp byte [ebx + 3], 0
je 0x1003f294
cmp byte [eax], 0x80
jb 0x1003f293
mov ecx, dword [ebx + 0x3c]
inc eax
cmp eax, ecx
jae 0x1003f4ab
cmp byte [eax], 0x80
jae 0x1003f285
inc eax
lea edi, [esp + 0x24]
call fcn.10002c00
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
cmp eax, edx
mov ecx, dword [esp + 0x24]
jg 0x1003f2fb
jl 0x1003f2b5
cmp ecx, dword [esp + 0x38]
jae 0x1003f2ef
lea eax, [esi + 1]
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jle 0x1003f30c
or edi, 0xffffffff
mov ecx, dword [esp + 0x30]
cmp byte [ebx + 5], 0
jne 0x1003f500
movzx edx, word [ebx + 0x12]
cmp ecx, edx
jl 0x1003f466
movzx eax, byte [ebx + 6]
mov edx, dword [ebx + 0x38]
lea eax, [eax + edx + 8]
jmp 0x1003f47d
cmp eax, edx
jl 0x1003f321
jg 0x1003f2fb
cmp ecx, dword [esp + 0x38]
jbe 0x1003f321
lea eax, [esi - 1]
cmp dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
jg 0x1003f31a
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
lea esi, [edx + eax]
sar esi, 1
jmp 0x1003f260
mov edi, 1
jmp 0x1003f2c5
or byte [ebp + 0x40], 2
mov dword [ebp + 0x14], eax
movsx eax, byte [ebp + 0x44]
mov dword [ebp + 0x10], ecx
mov word [ebp + eax*2 + 0x50], si
cmp byte [ebx + 5], 0
jne 0x1003f4c0
mov dword [esp + 0x30], esi
mov ecx, esi
jmp 0x1003f2d3
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + esi*2]
movzx ecx, word [ebx + 0x14]
mov ah, dl
mov al, dh
movzx edx, byte [ebx + 8]
movzx eax, ax
and eax, ecx
add eax, dword [ebx + 0x44]
movzx ecx, byte [eax]
cmp ecx, edx
jg 0x1003f388
mov edx, dword [esp + 0x34]
push edx
inc eax
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x1003f432
mov dl, byte [eax + 1]
test dl, dl
js 0x1003f3b7
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x1003f3b7
mov edx, dword [esp + 0x34]
push edx
add eax, 2
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x1003f432
movzx ecx, byte [ebx + 7]
mov edx, dword [ebx + 0x50]
lea edi, [ebp + 0x10]
push edi
sub eax, ecx
push eax
push ebx
call edx
mov edi, dword [edi]
add esp, 0xc
cmp edi, 2
jl 0x1003f4d4
lea eax, [edi + 0x12]
cdq
push edx
push eax
call fcn.1000dee0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1003f4e7
movsx ecx, byte [ebp + 0x44]
push 2
push eax
push edi
push ebp
xor eax, eax
mov word [ebp + ecx*2 + 0x50], si
call fcn.1003b6c0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003f4f1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
call dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push ecx
mov edi, eax
call sym.idmindex.dll_sqlite3_free
add esp, 0x10
test edi, edi
jge 0x1003f43f
lea edx, [esi + 1]
mov dword [esp + 0x30], edx
jmp 0x1003f44c
jle 0x1003f519
lea eax, [esi - 1]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jg 0x1003f2c9
lea esi, [eax + ecx]
sar esi, 1
jmp 0x1003f350
mov eax, dword [ebx + 0x40]
mov dx, word [eax + ecx*2]
mov ah, dl
mov al, dh
movzx edx, word [ebx + 0x14]
movzx eax, ax
and eax, edx
add eax, dword [ebx + 0x38]
call fcn.10002e30
movsx edx, byte [ebp + 0x44]
push eax
mov eax, ebp
mov word [ebp + edx*2 + 0x50], cx
call fcn.1003eec0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003f546
mov ecx, dword [esp + 0x20]
jmp 0x1003f230
push 0xe5f6
call fcn.10026140
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x44]
mov dword [eax], 0
mov dword [esp + 0x10], 0
jmp 0x1003f546
push 0xe63f
call fcn.10026140
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x1003f546
mov dword [esp + 0x10], 7
jmp 0x1003f546
mov ecx, dword [esp + 0x1c]
push ecx
call sym.idmindex.dll_sqlite3_free
add esp, 4
jmp 0x1003f546
movsx edx, byte [ebp + 0x44]
mov eax, dword [esp + 0x44]
mov word [ebp + edx*2 + 0x50], si
mov dword [eax], edi
mov dword [esp + 0x10], 0
jmp 0x1003f546
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov dword [ecx], 0
movsx edx, byte [ebp + 0x44]
mov word [ebp + edx*2 + 0x50], si
cmp byte [eax + 7], 0
mov dword [esp + 0x10], 0
je 0x1003f546
mov dword [esp + 0x10], 0xb
mov eax, dword [esp + 0x10]
xor ecx, ecx
and byte [ebp + 0x40], 0xf9
pop edi
mov word [ebp + 0x24], cx
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret