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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
inc eax
mov dword [esp + 0x64], eax
inc eax
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
inc ecx
mov dword [esp + 0x40], ecx
push ebp
push esi
lea ebp, [ecx + 1]
mov byte [esp + 0xb], 1
add ecx, 2
mov dword [esp + 0x18], ebp
mov dword [esp + 0x4c], ecx
inc ecx
mov dword [esp + 0x34], ecx
inc ecx
push edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
inc ecx
mov dword [esp + 0x44], ecx
inc ecx
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x2c]
mov edx, dword [edi]
mov dword [esp + 0x14], edx
cmp eax, ecx
jg 0x4a95dd
mov eax, ecx
mov esi, dword [edi + 8]
mov dword [edi + 0x2c], eax
test esi, esi
jne 0x4a9609
cmp dword [edi + 0x74], esi
jne 0x4a95f6
test byte [edx + 0x50], 8
jne 0x4a95f6
mov byte [edi + 0x17], 1
push edi
call fcn.0051ae50
mov esi, eax
add esp, 4
test esi, esi
je 0x4a9cbd
push ebx
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x4a9cbc
cmp byte [ebx + 0x2b], 0
jne 0x4a9cbc
push 0x5c
push 0x572c80
push dword [ebx]
push str.sqlite__
call fcn.004db9f0
add esp, 0x10
test eax, eax
je 0x4a9cbc
push dword [ebx + 0x3c]
push dword [esp + 0x1c]
call fcn.00511750
mov edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
add edx, edx
mov ecx, dword [eax + 0x10]
push dword [ecx + edx*8]
push 0
push dword [ebx]
push 0x1c
push edi
call fcn.004e7a40
add esp, 0x1c
test eax, eax
jne 0x4a9cbc
push dword [ebx]
push eax
push dword [ebx + 0x14]
push dword [esp + 0x38]
push edi
call fcn.00515e90
mov eax, dword [esp + 0x8c]
add esp, 0x14
mov ecx, dword [edi + 0x28]
mov edx, eax
inc eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], eax
inc eax
cmp ecx, eax
jg 0x4a96a2
mov ecx, eax
push 0x65
push ebx
push dword [esp + 0x34]
mov dword [edi + 0x28], ecx
push edx
push edi
call fcn.00508400
push dword [ebx]
push dword [esp + 0x54]
push esi
call fcn.00523130
mov ebx, dword [ebx + 8]
add esp, 0x20
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x4a9c3b
test eax, eax
je 0x4a96e1
cmp eax, ebx
jne 0x4a9c2c
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x68]
neg eax
sbb al, al
and byte [esp + 0x13], al
test byte [ecx + 0x1c], 0x80
je 0x4a9908
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
jne 0x4a9908
movzx edi, word [ebx + 0x32]
mov eax, dword [ecx]
lea ebp, [edi - 1]
push 0
push eax
push 0
push dword [esp + 0x58]
push 0
push 0x75
push esi
call fcn.0051a490
mov edx, dword [esp + 0x80]
add esp, 0x1c
mov ecx, dword [esp + 0x1c]
add ecx, ebp
mov eax, dword [edx + 0x2c]
cmp eax, ecx
jg 0x4a973c
mov eax, ecx
push dword [esp + 0x2c]
mov dword [edx + 0x2c], eax
push dword [ebx + 0x2c]
push dword [esp + 0x1c]
push 0x65
push esi
call fcn.0051a430
push ebx
push dword [esp + 0x7c]
call fcn.005258f0
push dword [esp + 0x5c]
push edi
push 0x47
push esi
call fcn.0051a3d0
push dword [esp + 0x7c]
movzx eax, word [ebx + 0x32]
push eax
push 0x47
push esi
call fcn.0051a3d0
mov edi, dword [esp + 0x50]
push edi
push 0x26
push esi
call fcn.0051a370
add esp, 0x48
mov dword [esp + 0x58], eax
push 1
push dword [esp + 0x24]
push edi
push 0x61
push esi
call fcn.0051a430
mov eax, dword [esp + 0x2c]
push dword [esp + 0x68]
push dword [eax + 0x1ec]
push 0x47
push esi
call fcn.0051a3d0
mov edi, dword [esp + 0x88]
push 0
push 0x571c84
push 4
push dword [esp + 0xa4]
push dword [esp + 0x74]
push 0
push edi
call fcn.0051a270
add esp, 0x40
push dword [esp + 0x30]
push 0
push 0x47
push esi
call fcn.0051a3d0
mov eax, dword [esi + 0x74]
add esp, 0x10
mov dword [esp + 0x28], eax
test ebp, ebp
jle 0x4a99f8
dec dword [edi + 0x38]
lea eax, [ebp*4]
mov edi, dword [edi + 0x38]
push 0
push eax
push dword [esp + 0x20]
mov dword [esp + 0x50], edi
call fcn.004f0ee0
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
je 0x4a9c24
push 0xb
push esi
call fcn.0051a320
mov eax, dword [esi + 0x74]
add esp, 8
mov dword [esp + 0x28], eax
cmp ebp, 1
jne 0x4a9858
cmp word [ebx + 0x32], bp
jne 0x4a9858
cmp byte [ebx + 0x36], 0
je 0x4a9858
push edi
push dword [esp + 0x20]
push 0x33
push esi
call fcn.0051a3d0
add esp, 0x10
xor ebx, ebx
test ebp, ebp
jle 0x4a98d5
mov edi, edi
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
push dword [eax + ebx*4]
push dword [esp + 0x68]
call fcn.005071d0
push dword [esp + 0x38]
mov edi, eax
push ebx
push 0x47
push esi
call fcn.0051a3d0
push dword [esp + 0x38]
push ebx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.0051a430
mov eax, dword [esp + 0x48]
push 0xfffffffffffffffe
push edi
add eax, ebx
push eax
push 0
push dword [esp + 0x5c]
push 0x34
push esi
call fcn.0051a490
mov ecx, dword [esp + 0x7c]
add esp, 0x48
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x4a98cc
lea ecx, [eax + eax*4]
mov edx, pe_nt_image_headers32
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
inc ebx
cmp ebx, ebp
jl 0x4a9860
mov edi, dword [esp + 0x44]
push dword [esp + 0x30]
push ebp
push 0x47
push esi
call fcn.0051a3d0
push edi
push esi
call fcn.00522760
mov ecx, dword [esp + 0x40]
add esp, 0x18
dec ecx
mov edx, dword [esi + 0x74]
jns 0x4a98f9
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4a9922
mov eax, 0x6a4314
jmp 0x4a992b
test byte [ebx + 0x38], 8
movzx edi, word [ebx + 0x34]
mov eax, dword [ebx]
je 0x4a970d
movzx ebp, word [ebx + 0x32]
dec ebp
jmp 0x4a9710
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x34]
xor edi, edi
mov dword [eax + 8], edx
test ebp, ebp
jle 0x4a99c0
lea esp, [esp]
mov ecx, dword [ebx + edi*4]
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x4a994d
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4a995c
mov eax, 0x6a4314
jmp 0x4a9965
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4a9989
mov eax, dword [esp + 0x1c]
add eax, edi
push eax
push edi
push dword [esp + 0x1c]
push 0x5d
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4a99bb
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + 0xc], eax
inc edi
cmp edi, ebp
jl 0x4a9940
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x44]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4a99de
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x4a99e7
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push ebx
push dword [esp + 0x1c]
call fcn.004f0e00
mov edi, dword [esp + 0x6c]
add esp, 8
mov ebp, dword [esp + 0x20]
push 0
push 0x5724dc
push 2
push ebp
push dword [esp + 0x84]
push 1
push edi
call fcn.0051a270
mov eax, dword [esp + 0x34]
add esp, 0x1c
cmp dword [eax + 0x1ec], 0
je 0x4a9af6
push ebp
push 0x32
push esi
call fcn.0051a370
push ebp
push 0x12
push esi
mov edi, eax
call fcn.0051a370
push 1
push dword [esp + 0x38]
mov ebx, eax
push 0
push dword [esp + 0x38]
push 0x1a
push esi
call fcn.0051a560
mov edx, dword [esi + 0x74]
add esp, 0x30
mov ebp, eax
test edi, edi
jns 0x4a9a62
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4a9a71
mov eax, 0x6a4314
jmp 0x4a9a7a
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
push dword [esp + 0x28]
mov dword [eax + 8], edx
push dword [esp + 0x18]
push 5
push esi
call fcn.0051a3d0
mov edx, dword [esi + 0x74]
add esp, 0x10
test ebx, ebx
jns 0x4a9a9a
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4a9aa9
mov eax, 0x6a4314
jmp 0x4a9ab2
mov eax, dword [esi + 0x70]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
test ebp, ebp
jns 0x4a9abf
lea ebp, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4a9ad9
mov edi, dword [esp + 0x64]
mov eax, 0x6a4314
mov ebp, dword [esp + 0x20]
mov dword [eax + 8], edx
jmp 0x4a9b09
mov eax, dword [esi + 0x70]
lea ecx, [ebp*4]
mov edi, dword [esp + 0x64]
add ecx, ebp
mov ebp, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4a9b09
push dword [esp + 0x28]
push dword [esp + 0x18]
push 5
push esi
call fcn.0051a3d0
add esp, 0x10
push 0
push 0x572668
push 1
push dword [esp + 0x54]
push dword [esp + 0x84]
push 0
push edi
call fcn.0051a270
push 0
push 0x57bfbc
push ebp
push 3
push dword [esp + 0x68]
push 0x60
push esi
call fcn.0051a490
mov ecx, dword [esi + 0x74]
add esp, 0x38
cmp dword [esi + 0x78], ecx
jg 0x4a9b64
mov ebx, dword [esp + 0x70]
push 0
push dword [esp + 0x28]
push ebx
push 0x7e
push esi
call fcn.004ceed0
mov edx, ebx
add esp, 0x14
mov ebx, dword [esp + 0x24]
jmp 0x4a9b97
mov edx, dword [esp + 0x70]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4a9baf
push ebx
push ebp
push edx
push 0x7f
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4a9bd6
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x4a9bed
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x4a9bfb
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4a9c11
mov ebx, dword [esp + 0x38]
mov eax, 0x6a4314
mov dword [eax + 8], edx
jmp 0x4a9c28
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov ebx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4a9c28
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x38], ebx
test ebx, ebx
jne 0x4a96d5
test eax, eax
jne 0x4a9cbc
cmp byte [esp + 0x13], al
je 0x4a9cbc
mov ebx, dword [esp + 0x48]
push ebx
push dword [esp + 0x60]
push 0x61
push esi
call fcn.0051a3d0
push ebx
push 0x14
push esi
call fcn.0051a370
push dword [esp + 0x68]
mov edi, eax
push 0
push 0x4a
push esi
call fcn.0051a3d0
push 0
push 0x57bfbc
push ebp
push 3
push dword [esp + 0x78]
push 0x60
push esi
call fcn.0051a490
mov ebx, dword [esp + 0xb8]
add esp, 0x48
push dword [esp + 0x24]
push ebx
push 0x7e
push esi
call fcn.0051a3d0
push dword [esp + 0x34]
push ebp
push ebx
push 0x7f
push esi
call fcn.0051a430
push 8
push esi
call fcn.0051a9d0
push edi
push esi
call fcn.00522e50
add esp, 0x34
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x50
ret