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

Disassembly:
jmp 0x522ce0
sub esp, 0x118
mov eax, dword [0x93e25c]
push ebx
push ebp
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x11c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xab8]
push esi
push edi
xor edi, edi
and eax, 0x40000
xor ecx, ecx
or eax, ecx
mov edx, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edx
jne 0x522d35
mov ecx, dword [ebp + 0x878]
mov eax, dword [ecx + 0x54]
test ah, ah
mov dword [esp + 0x30], edi
js 0x522d39
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x130]
mov eax, dword [ebx + 0x144]
mov ecx, dword [esp + 0x138]
lea esi, [ebx + 0x144]
mov dword [esp + 0x20], eax
cmp edx, dword [ecx + 8]
mov eax, dword [esp + 0x144]
sbb edx, edx
neg edx
push edx
mov ecx, ebp
mov dword [esp + 0x70], edi
call fcn.0051de40
mov eax, dword [esi]
add esp, 4
cmp eax, 8
jne 0x522df1
cmp dword [ebp + 0x50], edi
je 0x522dc3
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
push ebp
call fcn.0040933b
add esp, 0xc
test eax, eax
je 0x522dc3
mov edx, dword [ebx + 0x14]
push edx
push edi
push 0x48d
call fcn.005db890
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
call fcn.006cedd0
add esp, 0x118
ret
cmp dword [esi], 8
jne 0x522df1
mov esi, ebx
mov edi, ebp
call fcn.00522c60
test eax, eax
je 0x522dff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
call fcn.006cedd0
add esp, 0x118
ret
push ebx
push ebp
call fcn.00404287
add esp, 8
test eax, eax
jne 0x522da7
mov ecx, dword [ebp + 0xabc]
and ecx, 2
xor eax, eax
xor esi, esi
or eax, ecx
je 0x522e32
mov eax, dword [str._unknown_]
push 0x26a
push str.._sql_insert.cc
push eax
push str.init
lea ecx, [ebp + 0xb08]
call fcn.00401f91
jmp 0x522e3c
mov dword [ebp + 0x880], str.init
mov ecx, dword [esp + 0x138]
cmp dword [esp + 0x148], esi
mov dword [ebp + 0xad8], esi
mov dword [ebp + 0xadc], esi
mov edi, dword [ecx]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
jne 0x522e77
test dword [ebp + 0x454], 0x600000
je 0x522e77
mov edx, 1
jmp 0x522e79
xor edx, edx
mov esi, dword [esp + 0x134]
cmp dword [esi + 8], 0
jne 0x522e8e
test ecx, ecx
je 0x522e8e
xor ecx, ecx
jmp 0x522e93
mov ecx, 1
push edx
push ecx
mov ecx, dword [esp + 0x14c]
push 0
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x150]
push ecx
mov ecx, dword [esp + 0x150]
push edx
push ecx
push eax
push esi
push 0
push ebx
push ebp
call fcn.00401028
add esp, 0x30
test eax, eax
jne 0x523687
mov esi, dword [ebp + 0x2c]
mov edx, dword [ebx + 0x144]
mov eax, dword [esi + 0x324]
mov ecx, dword [ebx + 0x4c]
add esi, 0x320
mov dword [esp + 0x20], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x74], edx
mov edx, dword [ebx]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x80], edx
xor edx, edx
mov dword [ebx], edx
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edx
mov edi, dword [edi]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 4]
cmp eax, edx
mov dword [esp + 0x14], ecx
je 0x522f63
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 8]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
jne 0x523077
push 0
push 0
push 0
push eax
push 0
push ebp
call fcn.00409994
add esp, 0x18
test eax, eax
jne 0x523687
mov edi, dword [edi]
mov eax, dword [edi + 4]
xor edx, edx
cmp eax, edx
jne 0x522f22
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x13c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x140]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x64], edi
mov dword [esi + 0x1c], eax
mov edi, dword [ebx + 0x70]
mov eax, dword [esp + 0x148]
mov esi, dword [esp + 0x144]
neg edi
sbb edi, edi
and edi, ebx
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x138]
cmp dword [edi + 8], 1
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], esi
jne 0x522feb
cmp eax, edx
mov eax, 2
je 0x522ff0
mov eax, 1
mov dword [ebp + 0xb80], eax
mov dword [ebp + 0xac8], edx
mov eax, dword [ecx + 0x50]
mov dword [ecx + 0x4c], eax
cmp dword [ebp + 0xbb8], edx
je 0x523037
cmp esi, 2
jne 0x523037
cmp eax, edx
je 0x523037
mov ecx, dword [0x975be4]
add ecx, 0xde0
push 0x5f70
push ecx
call fcn.00403701
add esp, 8
test eax, eax
jne 0x523687
xor edx, edx
mov ecx, dword [ebp + 0xabc]
xor esi, esi
and ecx, 2
xor eax, eax
or eax, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
je 0x523090
mov edx, dword [str._unknown_]
push 0x2c0
push str.._sql_insert.cc
push edx
push str.update
lea ecx, [ebp + 0xb08]
call fcn.00401f91
jmp 0x52309a
mov edx, dword [esp + 0x10]
push edx
push 0
push 0x470
call fcn.005db890
add esp, 0xc
jmp 0x523687
mov dword [ebp + 0x880], str.update
mov eax, dword [esp + 0x144]
test eax, eax
jne 0x5230b0
mov eax, dword [esp + 0x148]
test eax, eax
je 0x5230f7
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push 0x19
call dword [eax + 0xb0]
cmp dword [esp + 0x144], 1
jne 0x5230fb
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x5230db
call fcn.004077f2
test eax, eax
jne 0x5230e8
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push 0x23
call dword [edx + 0xb0]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push 0x1b
call dword [eax + 0xb0]
jmp 0x5230fb
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x20], 8
je 0x52311f
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x52311f
mov eax, dword [esp + 0x138]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x114]
mov ecx, dword [ebp + 0xc1c]
mov eax, dword [esp + 0x148]
and ecx, 0xfffffffd
test eax, eax
mov dword [ebp + 0xc1c], ecx
jne 0x52314c
test dword [ebp + 0x454], 0x600000
je 0x52314c
mov eax, 1
jmp 0x52314e
xor eax, eax
mov ecx, dword [esp + 0x144]
push ecx
push edi
push ebp
mov dword [ebp + 0xc20], eax
call fcn.00408ff3
mov al, byte [ebx + 0x121]
add esp, 0xc
cmp al, 2
jne 0x523180
push 1
push 0
push ebp
mov ecx, ebx
call fcn.0040aa79
test eax, eax
jne 0x52318c
push ebp
mov ecx, ebx
call fcn.00403076
test eax, eax
je 0x523195
mov esi, 1
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x138]
mov eax, dword [edx]
mov edx, dword [eax + 4]
test edx, edx
mov dword [esp + 0x24], eax
je 0x5233ad
lea ecx, [ecx]
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x52325e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x52325e
mov ecx, dword [ebp + 0xad8]
or ecx, dword [ebp + 0xadc]
je 0x5231fe
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, dword [eax + 0xd0]
mov esi, dword [eax + 0x7c]
mov edi, dword [edi + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x52320e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x5c]
push 0
push ecx
push 0
push edx
mov edx, dword [eax + 0x14]
push edx
push ebp
call fcn.0040740f
add esp, 0x18
test eax, eax
je 0x5232ce
mov eax, dword [esp + 0x138]
mov ecx, dword [eax + 8]
mov esi, 1
cmp ecx, esi
je 0x5233ad
mov al, byte [ebp + 0x2c8]
test al, al
jne 0x5233ad
inc dword [esp + 0x38]
jmp 0x523385
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, dword [eax + 0xd0]
mov esi, dword [eax + 0x7c]
mov edi, dword [edi + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x5c]
mov ecx, dword [esp + 0x134]
push 0
push eax
push 0
push edx
push ecx
push ebp
call fcn.0040a21d
add esp, 0x18
test eax, eax
je 0x5232ce
mov edx, dword [esp + 0x138]
mov ecx, dword [edx + 8]
mov eax, 1
cmp ecx, eax
je 0x5233a0
mov cl, byte [ebp + 0x2c8]
test cl, cl
jne 0x5233a0
inc dword [esp + 0x38]
jmp 0x523385
mov eax, dword [esp + 0x138]
mov ecx, dword [eax + 8]
mov edi, dword [esp + 0x148]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
push ebp
mov ecx, ebx
call fcn.0040922d
cmp eax, 2
je 0x523385
cmp eax, 1
je 0x5233a8
cmp dword [esp + 0x20], 8
mov edi, dword [esp + 0x14]
jne 0x52333e
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x14c]
push eax
mov eax, dword [esp + 0x14c]
push ecx
push edx
push eax
push edi
push ebp
call fcn.0051f660
add esp, 0x1c
mov dword [esp + 0x34], 0
jmp 0x52334d
lea ecx, [esp + 0x38]
push ecx
push edi
push ebp
call fcn.00402e9b
add esp, 0xc
mov edx, dword [esp + 0x18]
mov esi, eax
or edx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
jne 0x52337b
mov eax, dword [ebp + 0xbec]
test eax, eax
je 0x52337b
mov eax, dword [ebp + 0xaa0]
mov ecx, dword [ebp + 0xaa4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x5233b1
inc dword [ebp + 0xb54]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov edx, dword [eax + 4]
test edx, edx
mov dword [esp + 0x24], eax
jne 0x5231b0
mov esi, dword [esp + 0x10]
jmp 0x5233ad
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x5233ad
mov esi, 1
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0x2c]
add eax, 0x2e0
push eax
push ebp
call fcn.00401fcd
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 8
mov dword [esp + 0x28], 1
jne 0x52340a
test esi, esi
jne 0x5233f7
mov ecx, dword [esp + 0x138]
mov edx, dword [ecx + 8]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, ebp
mov dword [esp + 0x44], edx
call fcn.0051edd0
push 1
push ebx
push ebp
mov ecx, 0x974d40
call fcn.004091f6
jmp 0x523503
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x52343a
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x118]
test eax, eax
je 0x52343a
test esi, esi
jne 0x52343a
call fcn.005e0030
mov ecx, dword [edi + 4]
mov eax, dword [eax]
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 0x18]
mov esi, 1
mov ecx, dword [esp + 0x18]
or ecx, dword [esp + 0x1c]
je 0x523464
mov edx, dword [esp + 0x138]
cmp dword [edx + 8], 1
je 0x523464
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.00405065
jmp 0x523480
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x523480
mov eax, dword [esp + 0x44]
test eax, eax
je 0x523480
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x52353c
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x52353c
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x52353c
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x24], 0
je 0x5234cc
push esi
push ebp
call fcn.00403d19
add esp, 8
mov esi, eax
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x523503
push eax
push ebp
call fcn.004079b4
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 7
jne 0x5234fc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5234fc
push 1
push ebx
push ebp
mov ecx, 0x974d40
call fcn.004091f6
mov dword [ebp + 0x4c], 0
mov ecx, dword [ebp + 0xabc]
and ecx, 2
xor eax, eax
or eax, ecx
je 0x5235e4
mov edx, dword [str._unknown_]
push 0x3a0
push str.._sql_insert.cc
push edx
push 0x7714b8
lea ecx, [ebp + 0xb08]
call fcn.00401f91
jmp 0x5235ee
push 1
push ebx
push ebp
mov ecx, 0x974d40
mov dword [esp + 0x30], 1
call fcn.004091f6
test esi, esi
jle 0x523562
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5234c0
mov eax, dword [0x81ebd4]
test eax, eax
je 0x5235c4
test esi, esi
jg 0x5235dc
mov ecx, ebp
call fcn.00405ae7
xor eax, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x34]
push eax
mov eax, dword [ebp + 0x30]
push 0
push ecx
push edx
push eax
push ebp
lea ecx, [esp + 0x9c]
call fcn.004025f9
lea ecx, [esp + 0x84]
push ecx
mov ecx, 0x81e578
call fcn.00406e83
test eax, eax
je 0x5235b8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5235b8
mov esi, 1
lea ecx, [esp + 0x84]
call fcn.00407220
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5234c0
or dword [ebp + 0xc1c], 1
jmp 0x5234cc
mov eax, dword [ebp + 0xb9c]
jmp 0x523578
mov dword [ebp + 0x880], 0x7714b8
mov ebx, dword [esp + 0x144]
xor eax, eax
cmp ebx, eax
mov dword [edi + 0x4c], eax
mov dword [ebp + 0xb80], eax
mov dword [ebp + 0xa90], eax
mov dword [ebp + 0xa94], eax
mov byte [edi + 0x4c4], al
jne 0x52361f
cmp dword [esp + 0x148], eax
je 0x523650
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
push 0x1a
call dword [eax + 0xb0]
cmp ebx, 1
jne 0x523650
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x523641
call fcn.004077f2
test eax, eax
jne 0x523650
mov edi, dword [edi + 4]
mov edx, dword [edi]
push 0x24
mov ecx, edi
call dword [edx + 0xb0]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x52367b
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x52367b
mov eax, dword [ebp + 0xbec]
test eax, eax
je 0x52367b
push 0
push 0
mov ecx, ebp
call fcn.00405065
xor edi, edi
xor ebx, ebx
jmp 0x523683
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
je 0x5236b9
cmp dword [esp + 0x20], 8
jne 0x523695
mov eax, ebp
call fcn.0051edd0
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x5236af
mov eax, dword [ebp + 0x2c]
add eax, 0x2e0
push eax
push ebp
call fcn.00401fcd
add esp, 8
mov eax, 1
jmp 0x5237c4
mov ecx, dword [esp + 0x138]
cmp dword [ecx + 8], 1
jne 0x523709
mov eax, dword [ebp + 0xab8]
and eax, 0x2000
xor ecx, ecx
or eax, ecx
je 0x5236e1
mov eax, dword [ebp + 0xac8]
test eax, eax
jne 0x523709
test byte [ebp + 0x884], 2
mov eax, dword [esp + 0x4c]
jne 0x5236f2
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
add eax, edx
add eax, dword [esp + 0x44]
mov dword [ebp + 0xac0], eax
push 0
jmp 0x5237a6
test byte [ebp + 0x884], 2
mov esi, dword [esp + 0x4c]
jne 0x52371a
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x148]
test eax, eax
je 0x52375b
cmp dword [esp + 0x20], 8
jne 0x523730
xor eax, eax
jmp 0x523738
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0xac8]
mov edx, dword [esp + 0x38]
push ecx
push eax
mov eax, dword [0x974690]
mov ecx, dword [eax + 0x170]
push edx
push ecx
lea edx, [esp + 0x94]
push edx
jmp 0x523784
mov eax, dword [ebp + 0xac8]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esi + ecx]
mov ecx, dword [0x974690]
push edx
mov edx, dword [ecx + 0x170]
push eax
push edx
lea eax, [esp + 0x94]
push eax
call fcn.006cf753
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
add esp, 0x14
add esi, ecx
add esi, edx
lea edx, [esp + 0x84]
mov dword [ebp + 0xac0], esi
push edx
push ebx
mov dword [ebp + 0xac4], 0
mov eax, dword [ebp + 0xac0]
push edi
push eax
push ebp
call fcn.00409854
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov dword [ebp + 0xc20], 0
pop ebp
pop ebx
call fcn.006cedd0
add esp, 0x118
ret