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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x24], eax
inc eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
inc eax
mov dword [esp + 0x14], eax
inc eax
mov dword [esp + 0x30], eax
inc eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov dword [esp + 0x4c], eax
inc eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x48], eax
inc eax
push esi
push edi
mov byte [esp + 0x13], 1
mov dword [ebp + 0x18], eax
cmp ecx, eax
jle 0x1003f930
mov eax, ecx
mov edi, ebx
mov dword [ebx + 0x4c], eax
call fcn.1005cba0
mov dword [esp + 0x18], eax
test eax, eax
je 0x10040118
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10040118
cmp dword [edi + 0x1c], 0
je 0x10040118
mov eax, dword [edi]
push 0
push 0x100b9530
push eax
push str.sqlite__
call fcn.1004bd00
add esp, 0x10
test eax, eax
jne 0x10040118
mov esi, dword [edi + 0x40]
mov ecx, dword [esp + 0x28]
call fcn.10058ea0
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
mov edx, esi
add edx, edx
mov edx, dword [ecx + edx*8]
push edx
push 0
push eax
push 0x1c
mov eax, ebx
mov dword [esp + 0x58], esi
call fcn.100419d0
add esp, 0x10
test eax, eax
jne 0x10040118
mov ecx, dword [edi]
mov edi, dword [edi + 0x1c]
push ecx
mov ebx, esi
mov esi, dword [ebp + 8]
push eax
mov eax, esi
call fcn.10041a60
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x48]
mov ebx, eax
inc eax
mov dword [esp + 0x2c], eax
inc eax
add esp, 8
mov dword [esp + 0x5c], ebx
cmp ecx, eax
jle 0x1003f9e2
mov eax, ecx
mov edi, dword [ebp + 0xc]
push 0x36
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x4c]
push ebx
push esi
mov esi, edi
call fcn.10050940
mov edx, dword [edi]
mov esi, dword [esp + 0x24]
add esp, 0xc
push edx
mov edx, dword [esp + 0x40]
mov eax, esi
call fcn.100244c0
mov eax, dword [edi + 8]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10040070
jmp 0x1003fa24
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003fa37
cmp ecx, eax
jne 0x10040059
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], 0
jne 0x1003fa42
mov byte [esp + 0x13], 0
test byte [edi + 0x2a], 0x20
je 0x1003fa62
mov ecx, dword [eax + 0x38]
and cl, 3
cmp cl, 2
jne 0x1003fa62
movzx ebx, word [eax + 0x32]
mov edi, dword [edi]
lea edx, [ebx - 1]
mov dword [esp + 0x14], edx
jmp 0x1003fa7c
test byte [eax + 0x38], 8
movzx ebx, word [eax + 0x34]
mov edi, dword [eax]
je 0x1003fa75
movzx eax, word [eax + 0x32]
dec eax
jmp 0x1003fa78
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x54]
push edi
mov eax, esi
call fcn.100244c0
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 8]
add eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x4c]
add esp, 4
cmp ecx, eax
jle 0x1003fa9e
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x48]
mov edx, dword [ecx + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x36
push esi
call fcn.100242d0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.10025030
mov edi, dword [esp + 0x4c]
mov edx, 0x16
mov eax, esi
call fcn.10024400
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
movzx ebx, word [ecx + 0x32]
add edi, 2
mov edx, 0x16
mov eax, esi
call fcn.10024400
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
push 0xfffffffffffffffb
push 0x100b946c
push 0
push 0x23
mov ecx, esi
call fcn.10024690
mov edx, dword [esi]
add esp, 0x10
cmp byte [edx + 0x45], 0
jne 0x1003fb27
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
mov edi, dword [esp + 0x24]
mov ebx, 0x6c
mov eax, esi
call fcn.100243a0
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x58], eax
lea edx, [ebx + 0x16]
mov eax, esi
call fcn.10024400
mov edx, dword [esi + 0x20]
mov dword [esp + 0x38], edx
cmp dword [esp + 0x14], ebx
jle 0x1003fdc3
mov eax, esi
call fcn.10024930
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [edi*4]
push ebx
push eax
mov eax, dword [esp + 0x30]
call fcn.10004420
add esp, 8
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x10040056
mov ebx, 0xd
mov eax, esi
call fcn.10024340
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
cmp edi, 1
jne 0x1003fbcb
mov eax, dword [esp + 0x1c]
cmp word [eax + 0x32], di
jne 0x1003fbcb
cmp byte [eax + 0x36], 0
je 0x1003fbcb
mov edi, dword [esp + 0x44]
mov ebx, dword [ebp + 0x18]
mov edx, 0x4d
mov eax, esi
call fcn.10024400
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jle 0x1003fc56
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x20]
mov esi, dword [eax + ebx*4]
mov edi, dword [ebp + 8]
call fcn.10043b40
mov edi, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x18]
mov edx, 0x16
call fcn.10024400
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
push ecx
push ebx
push edx
push 0x2f
push edi
call fcn.100242d0
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x18]
add esp, 0x14
push 0xfffffffffffffffc
push esi
push ecx
add eax, ebx
push 0x4e
xor edx, edx
mov ecx, edi
call fcn.10024690
mov edx, dword [esp + 0x44]
mov dword [edx + ebx*4], eax
mov eax, dword [edi]
add esp, 0x10
cmp byte [eax + 0x45], 0
jne 0x1003fc4d
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*4]
mov byte [edx + ecx*4 - 0x11], 0x80
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x1003fbd5
mov esi, edi
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov edx, 0x16
mov eax, esi
call fcn.10024400
mov edi, dword [esp + 0x44]
mov eax, esi
call fcn.10024460
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x38]
dec eax
mov ecx, dword [esi + 0x20]
jns 0x1003fc8c
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x1003fc9b
mov eax, 0x100d87f0
jmp 0x1003fca4
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edi, edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x14], edi
jle 0x1003fd57
mov eax, dword [esi + 0x20]
mov edx, dword [ecx + edi*4]
mov ebx, dword [esi + 0x18]
dec eax
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x20]
test edx, edx
jns 0x1003fcce
lea edx, [eax - 1]
mov ebx, dword [esi]
cmp byte [ebx + 0x45], 0
je 0x1003fcdd
mov edx, 0x100d87f0
jmp 0x1003fce6
mov ebx, dword [esi + 4]
lea edx, [edx + edx*4]
lea edx, [ebx + edx*4]
mov dword [edx + 8], eax
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], edx
jg 0x1003fd15
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [edi + ecx]
push edx
push edi
push eax
push 0x2f
call fcn.10024290
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
add esp, 0x10
jmp 0x1003fd46
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x24]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x18]
add eax, edi
mov byte [edx + 3], 0
mov dword [edx + 8], edi
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0
mov word [edx], 0x2f
mov ebx, dword [esp + 0x28]
inc edi
cmp edi, dword [esp + 0x14]
jl 0x1003fcb7
jmp 0x1003fd5b
mov ebx, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x1003fd77
mov edi, dword [esp + 0x44]
lea edi, [edi*4 + 4]
sub eax, edi
mov edi, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
cmp dword [ebx + 0x1c8], 0
je 0x1003fd92
mov eax, ecx
mov ecx, ebx
call fcn.100040f0
jmp 0x1003fdc1
cmp ecx, dword [ebx + 0x120]
jb 0x1003fdb8
cmp ecx, dword [ebx + 0x124]
jae 0x1003fdb8
mov edx, dword [ebx + 0x11c]
mov dword [ecx], edx
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], ecx
jmp 0x1003fdc1
push ecx
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
xor ebx, ebx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x1003fdea
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push ecx
push edx
push 1
push 0x23
call fcn.10024290
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x1003fe1b
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x20]
mov byte [eax + 3], bl
mov dword [eax + 4], 1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x23
mov eax, ecx
mov edx, dword [esi]
cmp byte [edx + 0x45], bl
je 0x1003fe33
mov ecx, 0x100b9488
mov eax, 0xfffffffb
call fcn.10024cd0
jmp 0x1003fe6a
cmp eax, ebx
jge 0x1003fe3b
mov eax, dword [esi + 0x20]
dec eax
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], bl
lea ecx, [ecx + eax*4]
je 0x1003fe5f
push 0x100b9488
push esi
mov eax, 0xfffffffb
call fcn.10024ec0
add esp, 8
jmp 0x1003fe6a
mov dword [ecx + 0x10], 0x100b9488
mov byte [ecx + 1], 0xfb
mov edx, dword [esi]
cmp byte [edx + 0x45], bl
jne 0x1003fe7f
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1003fea5
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push ebx
push eax
push ecx
push 7
call fcn.10024290
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x1003fed0
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x24]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x38]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 7
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x30]
mov eax, esi
call fcn.1003f820
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], ecx
jg 0x1003ff06
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
push eax
push 3
push ecx
push 0x31
call fcn.10024290
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x1003ff37
lea edx, [ecx + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax + 3], bl
mov dword [eax + 8], 3
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x31
mov eax, ecx
mov edx, dword [esi]
cmp byte [edx + 0x45], bl
je 0x1003ff4c
mov ecx, 0x100beac4
xor eax, eax
call fcn.10024cd0
jmp 0x1003ff6d
cmp eax, ebx
jge 0x1003ff54
mov eax, dword [esi + 0x20]
dec eax
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
push 0x100beac4
lea ecx, [ecx + eax*4]
push esi
xor eax, eax
call fcn.10024ec0
add esp, 8
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1003ff92
mov eax, dword [esp + 0x2c]
mov edi, dword [ebp + 0x14]
push ebx
push eax
push edi
push 0x4a
call fcn.10024290
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x1003ffbe
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x4a
mov edi, ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1003ffe4
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edx
push eax
push edi
push 0x4b
call fcn.10024290
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x1004000f
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov byte [eax + 3], bl
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x4b
mov eax, dword [esi]
cmp byte [eax + 0x45], bl
jne 0x10040024
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
mov byte [edx + ecx*4 - 0x11], 8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x20]
cmp eax, ebx
jge 0x1004003c
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], bl
je 0x1004004a
mov eax, 0x100d87f0
jmp 0x10040053
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1003fa20
mov ebx, dword [esp + 0x5c]
cmp dword [ebp + 0x10], 0
jne 0x10040118
cmp byte [esp + 0x13], 0
je 0x10040118
mov edi, dword [esp + 0x50]
mov edx, 0x32
mov eax, esi
call fcn.10024400
mov ebx, 0x2e
mov eax, esi
call fcn.100243a0
mov edi, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x5c], eax
lea edx, [ebx + 0x19]
mov eax, esi
call fcn.10024400
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push ebx
push 0x100beac4
push ecx
push 0x31
lea edx, [ebx + 3]
mov ecx, esi
call fcn.10024690
mov edi, dword [esp + 0x3c]
mov ebx, dword [ebp + 0x14]
mov edx, 0x4a
mov eax, esi
call fcn.10024400
mov eax, dword [esp + 0x30]
mov edx, edi
push edx
push eax
push ebx
push 0x4b
push esi
call fcn.100242d0
mov ecx, dword [esi]
add esp, 0x24
cmp byte [ecx + 0x45], 0
jne 0x1004010d
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + edx*4 - 0x11], 8
mov ecx, dword [esp + 0x5c]
mov eax, esi
call fcn.10024c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret