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

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x24], ebp
add ebp, 1
mov dword [esp + 0x38], ebp
add ebp, 1
mov dword [esp + 0x20], ebp
add ebp, 1
mov dword [esp + 0x30], ebp
add ebp, 1
mov dword [esp + 0x28], ebp
add ebp, 1
push esi
mov ebx, ebp
add ebp, 1
push edi
mov edi, dword [esp + 0x4c]
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x34], ebp
add ebp, 1
test esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0xffffffff
jne 0x56e608
call fcn.0055ca10
mov esi, eax
test esi, esi
mov dword [edi + 0xc], eax
je 0x56ecda
push 0
push 0
push 0
push 0x88
call fcn.0055cbe0
add esp, 0x10
mov edx, dword [esp + 0x50]
test edx, edx
je 0x56ecda
cmp dword [edx + 0x14], 0
je 0x56ecda
mov edx, dword [edx]
mov eax, 7
mov ecx, str.sqlite_
mov dword [esp + 0x5c], edx
mov edi, edi
mov edx, dword [edx]
cmp edx, dword [ecx]
jne 0x56e650
mov edx, dword [esp + 0x5c]
sub eax, 4
add edx, 4
add ecx, 4
cmp eax, 4
mov dword [esp + 0x5c], edx
jae 0x56e630
test eax, eax
je 0x56e6c9
mov edx, dword [esp + 0x5c]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x56e6b3
add dword [esp + 0x5c], 1
sub eax, 1
add ecx, 1
test eax, eax
je 0x56e6c5
mov edx, dword [esp + 0x5c]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x56e6b3
add dword [esp + 0x5c], 1
sub eax, 1
add ecx, 1
test eax, eax
je 0x56e6c5
mov edx, dword [esp + 0x5c]
movzx edx, byte [edx]
movzx edi, byte [ecx]
sub edx, edi
jne 0x56e6b3
mov edx, dword [esp + 0x5c]
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x56e6c5
movzx edx, byte [edx]
movzx eax, byte [ecx]
sub edx, eax
je 0x56e6c5
test edx, edx
mov edi, dword [esp + 0x4c]
mov eax, 1
jg 0x56e6cb
or eax, 0xffffffff
jmp 0x56e6cb
mov edi, dword [esp + 0x4c]
xor eax, eax
test eax, eax
je 0x56ecda
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x44]
test edx, edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x10], 0xfff0bdc0
je 0x56e71b
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x56e71b
mov eax, dword [eax + 8]
add eax, 0xc
jmp 0x56e709
mov edx, dword [esp + 0x5c]
cmp dword [eax], edx
je 0x56e71b
add dword [esp + 0x10], 1
add eax, 0x10
cmp dword [esp + 0x10], ecx
jl 0x56e705
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
shl edx, 4
mov edx, dword [edx + ecx]
push edx
push 0
push eax
push 0x1c
mov eax, edi
call fcn.0056fe50
add esp, 0x10
test eax, eax
jne 0x56ecda
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov eax, edi
call fcn.0056fee0
mov eax, dword [edi + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
push 0
mov dword [esp + 0x2c], eax
add eax, 1
push edx
mov dword [edi + 0x44], eax
mov edi, dword [ecx]
push 0
push 0x5e
mov eax, esi
mov dword [esp + 0x5c], edi
call fcn.0055cbe0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add esp, 0x20
test ecx, ecx
je 0x56e7f8
cmp byte [edx + 0x1e], 0
jne 0x56e7f8
test eax, eax
jge 0x56e7a8
mov eax, dword [esi + 0x1c]
sub eax, 1
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ecx + 0x10]
mov edi, edx
call fcn.0055cf70
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
xor edx, edx
cmp ecx, edx
mov dword [eax + 0x10], edx
jne 0x56e7d9
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
jmp 0x56e803
call fcn.00545410
mov edx, dword [esi]
push ecx
mov edi, eax
call fcn.005437c0
mov ecx, dword [esp + 0x60]
add esp, 4
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xff
jmp 0x56e803
mov ecx, edi
xor eax, eax
mov edi, edx
call fcn.0055cf70
mov eax, dword [esp + 0x50]
mov edi, dword [eax + 0x10]
test edi, edi
mov dword [esp + 0x14], edi
je 0x56ebd7
jmp 0x56e824
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x56e834
cmp eax, edi
jne 0x56ebc4
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi + 4]
push edi
push edx
mov dword [esp + 0x64], ecx
call fcn.00574a50
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
add ecx, ecx
lea ecx, [ecx + ebp + 1]
add esp, 8
cmp ecx, dword [edx + 0x48]
jle 0x56e85f
mov dword [edx + 0x48], ecx
mov ecx, dword [edi + 0x14]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push 0x26
mov edi, esi
call fcn.0055ccb0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x50]
push 0
push edx
push 0
push 0x5e
xor eax, eax
call fcn.0055ccb0
mov eax, dword [esp + 0x7c]
add esp, 0x20
xor edi, edi
test eax, eax
jl 0x56e8bd
push 0
lea eax, [edi + ebp]
push eax
push 0
push 7
mov eax, esi
call fcn.0055cbe0
add edi, 1
add esp, 0x10
cmp edi, dword [esp + 0x5c]
jle 0x56e89c
mov eax, dword [esp + 0x5c]
xor edi, edi
test eax, eax
jle 0x56e8eb
lea ecx, [eax + ebp + 1]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
push 0
add edx, edi
push edx
push 0
push 0xa
mov eax, esi
call fcn.0055cbe0
add edi, 1
add esp, 0x10
cmp edi, dword [esp + 0x5c]
jl 0x56e8cb
mov eax, esi
call fcn.0055cd10
push 0
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
push 0x41
mov eax, esi
call fcn.0055cbe0
mov ecx, dword [esi + 0x1c]
push 0
push 1
push ebp
push 0x14
mov eax, esi
mov dword [esp + 0x64], ecx
call fcn.0055cbe0
xor edi, edi
add esp, 0x20
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x20], edi
jle 0x56e9c0
jmp 0x56e935
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
push 0x1c
mov eax, esi
call fcn.0055cbe0
add esp, 0x10
test edi, edi
jne 0x56e962
push edi
push edi
lea ecx, [ebp + 1]
push ecx
push 0x1b
mov eax, esi
call fcn.0055cbe0
add esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x2c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + edi*4]
push ecx
call fcn.005717f0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
add esp, 4
push 0xfffffffffffffffc
push eax
lea eax, [edx + ebp + 1]
push ecx
add eax, edi
push 0x4b
xor ecx, ecx
mov edi, esi
call fcn.0055ccb0
mov eax, dword [esi + 4]
add esp, 0x10
test eax, eax
je 0x56e9ab
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 0x80
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
jl 0x56e931
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x1e], 0
jne 0x56ecda
mov ecx, dword [esp + 0x3c]
push 0
push ecx
push 0
push 1
mov eax, esi
call fcn.0055cbe0
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x5c], edi
jle 0x56ea5f
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x1c]
add ecx, ecx
sub eax, ecx
test edi, edi
mov dword [esp + 0x20], eax
jne 0x56ea16
mov edx, dword [esi + 0x1c]
lea ecx, [eax - 1]
cmp edx, ecx
jle 0x56ea16
lea eax, [ecx + ecx*4]
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
cmp ecx, eax
jle 0x56ea27
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + edx*4 + 8], ecx
push 0
push 1
lea ecx, [edi + ebp + 1]
push ecx
push 0x14
mov eax, esi
call fcn.0055cbe0
mov edx, dword [esp + 0x6c]
lea eax, [edx + ebp + 1]
add eax, edi
push eax
mov eax, dword [esp + 0x2c]
push edi
push eax
push 0x1c
mov eax, esi
call fcn.0055cbe0
add edi, 1
add esp, 0x20
cmp edi, dword [esp + 0x5c]
jl 0x56e9eb
mov edx, dword [esp + 0x3c]
mov ecx, esi
call fcn.0055cdb0
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
push 0
push ecx
push edi
push 0x43
mov eax, esi
call fcn.0055cbe0
push 0
push 0
push edi
push 0x2b
mov eax, esi
call fcn.0055cbe0
mov edx, dword [esp + 0x48]
push 0
push edx
push ebp
push 0xf
mov eax, esi
call fcn.0055cbe0
add esp, 0x30
cmp dword [esp + 0x1c], 0
jge 0x56eabd
push 0
push 0
push ebp
push 0x1b
mov eax, esi
call fcn.0055cbe0
add esp, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x56eb64
lea ecx, [ebp + 1]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], eax
push 0
push 0x62b61c
push 0
push 0x5e
xor eax, eax
mov ecx, ebx
mov edi, esi
call fcn.0055ccb0
mov edi, dword [esp + 0x38]
push edi
push edi
push ebx
push 0x5b
mov eax, esi
call fcn.0055cbe0
mov edx, dword [esp + 0x7c]
push ebx
push edx
push ebp
push 0x56
mov eax, esi
call fcn.0055cbe0
push 0
push 0xffffffffffffffff
push ebx
push 0x14
mov eax, esi
call fcn.0055cbe0
mov eax, dword [esp + 0x9c]
add esp, 0x40
push ebx
push ebx
push eax
push 0x59
mov eax, esi
call fcn.0055cbe0
push 0
push 0
push ebx
push 0x90
mov eax, esi
call fcn.0055cbe0
push edi
push edi
push ebx
push 0x5b
mov eax, esi
call fcn.0055cbe0
mov eax, 1
add dword [esp + 0x8c], eax
add esp, 0x30
sub dword [esp + 0x3c], eax
jne 0x56ead4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push 0
push 0x62f8f0
push ecx
push 0x1e
mov ecx, 3
mov edi, esi
call fcn.0055ccb0
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x68]
push 0
push edx
push edi
push 0x36
mov eax, esi
call fcn.0055cbe0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push edi
push 0x37
mov eax, esi
call fcn.0055cbe0
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x44]
add esp, 0x30
test eax, eax
je 0x56ebc4
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov edi, dword [edi + 0x20]
test edi, edi
mov dword [esp + 0x14], edi
jne 0x56e820
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x10], 0
jne 0x56ec26
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
mov edi, dword [esp + 0x18]
push ecx
push edx
push edi
push 0x26
mov eax, esi
call fcn.0055cbe0
mov ebx, dword [esp + 0x38]
push 0
push ebx
push edi
push 0x1f
mov eax, esi
call fcn.0055cbe0
push 0
push 0
push edi
push 0x2b
mov eax, esi
call fcn.0055cbe0
push 0
push 0
push ebx
push 0x1b
mov eax, esi
call fcn.0055cbe0
add esp, 0x40
jmp 0x56ec4d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x56ec3b
mov edx, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
push 0
push 0
push 0
push 1
mov eax, esi
call fcn.0055cbe0
add esp, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
push 0
push eax
push 0
push 0xa
mov eax, esi
call fcn.0055cbe0
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
push 0
push 0x62f8f0
push ecx
push 0x1e
mov eax, ebx
mov ecx, 3
mov edi, esi
call fcn.0055ccb0
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x78]
push 0
push ebp
push edi
push 0x36
mov eax, esi
call fcn.0055cbe0
push ebp
push ebx
push edi
push 0x37
mov eax, esi
call fcn.0055cbe0
mov eax, dword [esi + 4]
add esp, 0x40
test eax, eax
je 0x56ecb9
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x48], ebx
jge 0x56ecc5
mov dword [eax + 0x48], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x56ecda
mov edx, dword [esi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret