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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x40
mov esi, edx
mov dword [esp + 0x20], 0
push 0
push ebx
mov dword [esp + 0x3c], esi
mov edi, ecx
call fcn.00570cd0
add esp, 0xc
shl esi, 2
call fcn.004e4f50
test eax, eax
je 0x5023dd
mov dword [ebx], 0
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call fcn.0043b050
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x5023fa
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push eax
call fcn.00570cd0
add esp, 0xc
lea eax, [esp + 0x1c]
mov edx, 0xc
mov ecx, edi
push 0
push eax
call fcn.004fa580
mov esi, eax
add esp, 8
mov dword [esp + 0x20], esi
test esi, esi
jne 0x502ba5
push dword [ebp + 0xc]
mov ebx, dword [esp + 0x20]
push dword [ebp + 8]
push 1
push ebx
call fcn.00467fa0
add esp, 0x10
mov dword [esp + 0x1c], esi
xor edi, edi
test ebx, ebx
je 0x502ab0
cmp dword [ebx], edi
jne 0x502465
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
lea eax, [edi + 1]
jmp 0x502467
xor eax, eax
test eax, eax
jne 0x502abf
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x502486
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, ebx
call fcn.00466700
mov esi, eax
cmp esi, 0x11
jne 0x5026a3
mov ecx, edi
inc edi
mov dword [esp + 0x18], edi
cmp ecx, 0x32
jge 0x5026a3
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x2c]
mov esi, dword [ebx]
mov edx, dword [ebx + 0xc8]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov ecx, esi
movzx eax, byte [ebx + 0x94]
push ebx
push eax
push 0xffffffffffffffff
call fcn.004adf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5025d9
mov esi, dword [esp + 0x2c]
lea edi, [esp + 0x40]
mov ecx, 0x3a
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2c]
mov ecx, 0x3a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea esi, [esp + 0x40]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0xc8]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0xc8]
mov dword [esi + 0xc8], eax
mov dword [ebx + 0xc8], ecx
mov ecx, esi
mov eax, dword [esi + 0xdc]
mov dword [ebx + 0xdc], eax
mov al, byte [esi + 0x94]
mov byte [ebx + 0x94], al
movups xmm0, xmmword [esi + 0xa4]
movups xmmword [ebx + 0xa4], xmm0
movups xmm0, xmmword [esi + 0xb4]
movups xmmword [ebx + 0xb4], xmm0
mov eax, dword [esi + 0xc4]
mov dword [ebx + 0xc4], eax
inc dword [ebx + 0xb8]
call fcn.00468840
mov dword [esi + 0x24], 0
cmp byte [esi + 0x95], 1
jb 0x5025a0
mov ecx, esi
call fcn.00463720
mov ecx, esi
call fcn.00463800
push ebx
call fcn.00465900
add esp, 4
cmp dword [esp + 0x14], 0
jl 0x5025be
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.00466700
mov esi, eax
cmp esi, 0x11
jne 0x5026a3
mov edi, dword [esp + 0x18]
jmp 0x502498
cmp edi, 7
jne 0x5025e5
mov ecx, esi
call fcn.0043ba90
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x5025f7
xor esi, esi
jmp 0x50262a
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x502614
cmp byte [ecx + 0x12], 1
jne 0x502614
mov esi, dword [ecx + 8]
jmp 0x502626
test dl, 1
je 0x50261d
xor esi, esi
jmp 0x502626
mov dl, 1
call fcn.00460000
mov esi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x502638
mov ecx, eax
call fcn.0043b330
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x57], 0
jne 0x5026ff
test esi, esi
jne 0x50264e
xor eax, eax
jmp 0x502690
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x502657
sub ecx, dword [esp + 0x14]
push 0
lea eax, [ecx + 1]
mov ecx, edx
push eax
mov dword [esp + 0x1c], eax
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x502690
push dword [esp + 0x14]
push esi
push eax
call fcn.00570750
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, edi
mov dword [ebx + 0x7c], eax
call fcn.0043bb70
mov esi, eax
mov dword [ebx + 0x24], esi
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x5026b8
push eax
call dword [0x5dac88]
add esp, 4
cmp esi, 0x64
jne 0x502add
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
jge 0x502add
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5026e2
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
mov esi, 4
test ecx, ecx
je 0x502710
cmp si, word [ebx + 0x90]
jae 0x502710
add ecx, 0xa0
jmp 0x502728
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x5026a7
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 2
je 0x50273b
cmp byte [ecx + 0x12], 1
jne 0x50273b
mov eax, dword [ecx + 0xc]
jmp 0x50276a
test al, 0x10
je 0x502755
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x50274f
mov eax, dword [ecx]
add eax, edx
jmp 0x50276a
mov dword [esp + 0x10], edx
jmp 0x50276e
test al, 1
je 0x502763
mov dword [esp + 0x10], 0
jmp 0x50276e
mov dl, 1
call fcn.004606b0
mov dword [esp + 0x10], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x502781
test edx, edx
jne 0x502781
xor eax, eax
jmp 0x502786
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50279c
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5027af
push eax
call dword [0x5dac80]
add esp, 4
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5027c6
cmp si, word [ebx + 0x90]
jae 0x5027c6
add eax, 0xa0
jmp 0x5027de
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov eax, 0x5b3788
push eax
call fcn.00465a70
mov ecx, dword [ebx]
add esp, 4
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x34], eax
cmp byte [ecx + 0x57], 0
jne 0x5027fe
test edx, edx
jne 0x5027fe
xor eax, eax
jmp 0x502803
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x502819
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50282c
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x502846
mov eax, 3
cmp ax, word [ebx + 0x90]
jae 0x502846
add ecx, 0x78
jmp 0x50285e
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x502871
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x28], esi
jmp 0x5028ae
test al, 8
je 0x502884
movsd xmm0, qword [ecx]
call fcn.0045f320
mov dword [esp + 0x28], edx
jmp 0x5028ae
test al, 0x12
je 0x502899
cmp dword [ecx + 8], 0
je 0x502899
call fcn.0045f350
mov dword [esp + 0x28], edx
jmp 0x5028ae
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
cmp byte [ecx + 0x57], 0
jne 0x5028c5
test edx, edx
jne 0x5028c5
xor eax, eax
jmp 0x5028ca
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5028e0
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5028f3
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x50290d
mov eax, 2
cmp ax, word [ebx + 0x90]
jae 0x50290d
add ecx, 0x50
jmp 0x502925
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x502938
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x14], esi
jmp 0x502975
test al, 8
je 0x50294b
movsd xmm0, qword [ecx]
call fcn.0045f320
mov dword [esp + 0x14], edx
jmp 0x502975
test al, 0x12
je 0x502960
cmp dword [ecx + 8], 0
je 0x502960
call fcn.0045f350
mov dword [esp + 0x14], edx
jmp 0x502975
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x20], eax
cmp byte [ecx + 0x57], 0
jne 0x50298c
test edx, edx
jne 0x50298c
xor eax, eax
jmp 0x502991
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5029a7
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5029ba
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x5029d4
mov eax, 1
cmp ax, word [ebx + 0x90]
jae 0x5029d4
add ecx, 0x28
jmp 0x5029ec
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x5029fb
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x502a34
test al, 8
je 0x502a0e
movsd xmm0, qword [ecx]
call fcn.0045f320
mov esi, eax
mov edi, edx
jmp 0x502a34
test al, 0x12
je 0x502a23
cmp dword [ecx + 8], 0
je 0x502a23
call fcn.0045f350
mov esi, eax
mov edi, edx
jmp 0x502a34
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x502a47
test edx, edx
jne 0x502a47
xor eax, eax
jmp 0x502a4c
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x502a62
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
lea eax, [eax + ecx*4]
push eax
push dword [esp + 0x14]
push dword [esp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x38]
push edi
push esi
mov edi, ecx
call fcn.004fcad0
mov esi, eax
inc edi
mov eax, dword [ebp + 0x10]
add esp, 0x24
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
inc dword [eax + 4]
test esi, esi
je 0x502443
jmp 0x502add
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
push 0x5cacbc
push 0x15841
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0043e300
add esp, 0x14
test ebx, ebx
jne 0x502af3
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
cmove eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x502b06
push eax
call dword [0x5dac80]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x502b23
jg 0x502b1a
cmp dword [ebx + 0x88], 0
jbe 0x502b23
mov edx, ebx
mov ecx, esi
call fcn.00465760
mov ecx, ebx
call fcn.00463720
mov byte [ebx + 0x95], 1
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0
mov word [ebx + 0x92], 0xff02
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
cmp byte [esi + 0x57], 0
jne 0x502b80
test eax, eax
jne 0x502b80
xor edi, edi
jmp 0x502b8b
mov edx, eax
mov ecx, esi
call fcn.0043bb70
mov edi, eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x502b9c
push ecx
call dword [0x5dac88]
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
cmove eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret