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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0x18], 0
xor ebx, ebx
mov dword [esp + 0x2c], eax
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], 0
push ebx
push ecx
lea edx, [ebx + 0x23]
mov dword [esp + 0x20], 0
mov ecx, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], ebx
call fcn.004fa580
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
jne 0x506570
push dword [ebp + 0xc]
mov esi, dword [esp + 0x2c]
push dword [ebp + 8]
push 1
push esi
call fcn.00467fa0
add esp, 0x10
mov dword [esp + 0x34], ebx
test esi, esi
je 0x506457
cmp dword [esi], ebx
jne 0x5060d7
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
mov eax, 1
jmp 0x5060d9
xor eax, eax
test eax, eax
jne 0x506466
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5060f8
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, esi
call fcn.00466700
mov edi, eax
cmp edi, 0x11
jne 0x506251
nop word [eax + eax]
mov eax, dword [esp + 0x34]
mov ecx, eax
inc eax
mov dword [esp + 0x34], eax
cmp ecx, 0x32
jge 0x506251
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x3c]
mov edi, dword [esi]
mov edx, dword [esi + 0xc8]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov ecx, edi
movzx eax, byte [esi + 0x94]
push esi
push eax
push 0xffffffffffffffff
call fcn.004adf50
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jne 0x5062ff
mov esi, dword [esp + 0x3c]
lea edi, [esp + 0x40]
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
mov ecx, 0x3a
mov edi, dword [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x40]
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
mov edx, esi
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 0xc8]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0xc8]
mov dword [edi + 0xc8], eax
mov dword [esi + 0xc8], ecx
mov ecx, edi
mov eax, dword [edi + 0xdc]
mov dword [esi + 0xdc], eax
mov al, byte [edi + 0x94]
mov byte [esi + 0x94], al
movups xmm0, xmmword [edi + 0xa4]
movups xmmword [esi + 0xa4], xmm0
movups xmm0, xmmword [edi + 0xb4]
movups xmmword [esi + 0xb4], xmm0
mov eax, dword [edi + 0xc4]
mov dword [esi + 0xc4], eax
inc dword [esi + 0xb8]
call fcn.00468840
mov dword [edi + 0x24], ebx
cmp byte [edi + 0x95], 1
jb 0x506222
mov ecx, edi
call fcn.00463720
mov ecx, edi
call fcn.00463800
push esi
call fcn.00465900
add esp, 4
cmp dword [esp + 0x14], ebx
jl 0x50623f
mov byte [esi + 0x93], 0xfe
mov ecx, esi
call fcn.00466700
mov edi, eax
cmp edi, 0x11
je 0x506110
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x506266
push eax
call dword [0x5dac88]
add esp, 4
cmp edi, 0x64
jne 0x506484
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jl 0x5062af
add edi, 0x10
mov dword [esp + 0x18], edi
call fcn.004e4f50
test eax, eax
jne 0x50644d
mov ecx, dword [esp + 0x1c]
lea eax, [edi*4]
push 0
push eax
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50644d
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5062c2
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x5062d4
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x5062ec
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 0x24
je 0x5063db
mov edi, dword [ecx]
jmp 0x50640b
cmp eax, 7
jne 0x50630b
mov ecx, edi
call fcn.0043ba90
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x50631d
xor edi, edi
jmp 0x506350
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x50633a
cmp byte [ecx + 0x12], 1
jne 0x50633a
mov edi, dword [ecx + 8]
jmp 0x50634c
test dl, 1
je 0x506343
xor edi, edi
jmp 0x50634c
mov dl, 1
call fcn.00460000
mov edi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x50635e
mov ecx, eax
call fcn.0043b330
mov edx, dword [esp + 0xc]
cmp byte [edx + 0x57], bl
jne 0x5063cb
test edi, edi
jne 0x50636f
xor eax, eax
jmp 0x5063b1
mov ecx, edi
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x506378
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 + 0x34], eax
test eax, eax
je 0x5063b1
push dword [esp + 0x14]
push edi
push eax
call fcn.00570750
mov eax, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x7c], eax
call fcn.0043bb70
mov edi, eax
mov dword [esi + 0x24], edi
jmp 0x506251
mov edi, 7
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x24], edi
jmp 0x506255
test al, 8
je 0x5063ec
movsd xmm0, qword [ecx]
call fcn.0045f320
mov edi, eax
jmp 0x50640b
test al, 0x12
je 0x5063fe
cmp dword [ecx + 8], ebx
je 0x5063fe
call fcn.0045f350
mov edi, eax
jmp 0x50640b
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x20]
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], bl
jne 0x50641d
test edx, edx
jne 0x50641d
xor eax, eax
jmp 0x506422
call fcn.0043bb70
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x506438
push eax
call dword [0x5dac88]
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov dword [eax + ecx*4], edi
inc ecx
mov dword [esp + 0x2c], ecx
jmp 0x5060b1
mov dword [esp + 0x10], 7
jmp 0x506484
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
push 0x5cad1c
push 0x15841
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0043e300
add esp, 0x14
test esi, esi
jne 0x50648f
xor eax, eax
jmp 0x50651f
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x5064a2
push eax
call dword [0x5dac80]
add esp, 4
cmp dword [esi + 0x8c], ebx
jl 0x5064bd
jg 0x5064b4
cmp dword [esi + 0x88], ebx
jbe 0x5064bd
mov edx, esi
mov ecx, edi
call fcn.00465760
mov ecx, esi
call fcn.00463720
mov byte [esi + 0x95], 1
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], ebx
mov word [esi + 0x92], 0xff02
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
cmp byte [edi + 0x57], bl
jne 0x5064fd
test eax, eax
je 0x506506
mov edx, eax
mov ecx, edi
call fcn.0043bb70
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x50651f
push ecx
call dword [0x5dac88]
mov eax, dword [esp + 0x1c]
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x506570
mov esi, eax
test eax, eax
jne 0x506570
mov ecx, dword [esp + 0x30]
lea edx, [esi + 0x1f]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004fa580
mov ebx, dword [esp + 0x40]
mov esi, eax
add esp, 8
test esi, esi
jne 0x506570
push dword [ebp + 0xc]
push dword [ebp + 8]
push 2
push ebx
call fcn.00467fa0
mov eax, dword [esp + 0x40]
add esp, 0x10
xor edi, edi
mov dword [esp + 0x10], edi
mov byte [eax + 0xf0], 1
jmp 0x506590
mov eax, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x10], edi
mov byte [eax + 0xf0], 1
test esi, esi
jne 0x50694a
nop dword [eax]
cmp edi, dword [esp + 0x2c]
jge 0x506946
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
cmp eax, edi
je 0x506939
cdq
push edx
push eax
push 3
push ebx
call fcn.00467fa0
mov eax, edi
cdq
push edx
push eax
push 1
push ebx
call fcn.00467fa0
add esp, 0x20
xor esi, esi
test ebx, ebx
jne 0x5065db
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
jmp 0x5065fb
cmp dword [ebx], esi
jne 0x5065f5
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
mov eax, 1
jmp 0x5065f7
xor eax, eax
test eax, eax
je 0x50661e
push 0x5cad1c
push 0x15841
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0043e300
add esp, 0x14
jmp 0x506867
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x506635
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, ebx
call fcn.00466700
cmp eax, 0x11
jne 0x506852
mov eax, esi
inc esi
mov dword [esp + 0x14], esi
cmp eax, 0x32
jge 0x50684e
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x18]
mov edi, dword [ebx]
mov edx, dword [ebx + 0xc8]
push 0
push ecx
mov dword [esp + 0x28], eax
mov ecx, edi
movzx eax, byte [ebx + 0x94]
push ebx
push eax
push 0xffffffffffffffff
call fcn.004adf50
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x506784
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x40]
mov ecx, 0x3a
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
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 + 0x18]
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 0x50674d
mov ecx, esi
call fcn.00463720
mov ecx, esi
call fcn.00463800
push ebx
call fcn.00465900
add esp, 4
cmp dword [esp + 0x20], 0
jl 0x50676b
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.00466700
cmp eax, 0x11
jne 0x50684e
mov esi, dword [esp + 0x14]
jmp 0x506645
cmp esi, 7
jne 0x506790
mov ecx, edi
call fcn.0043ba90
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x5067a2
xor edi, edi
jmp 0x5067d5
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x5067bf
cmp byte [ecx + 0x12], 1
jne 0x5067bf
mov edi, dword [ecx + 8]
jmp 0x5067d1
test dl, 1
je 0x5067c8
xor edi, edi
jmp 0x5067d1
mov dl, 1
call fcn.00460000
mov edi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x5067e3
mov ecx, eax
call fcn.0043b330
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x57], 0
jne 0x506874
test edi, edi
jne 0x5067f9
xor ecx, ecx
jmp 0x50683f
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x506800
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], eax
call fcn.0043b7c0
mov ecx, eax
add esp, 8
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x50683b
push dword [esp + 0x20]
push edi
push ecx
call fcn.00570750
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x7c], ecx
mov edx, esi
mov ecx, eax
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x506867
push eax
call dword [0x5dac88]
add esp, 4
test ebx, ebx
jne 0x506888
mov dword [esp + 0x10], ebx
jmp 0x506935
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], 7
jmp 0x506856
mov esi, dword [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x50689b
push eax
call dword [0x5dac80]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x5068b8
jg 0x5068af
cmp dword [ebx + 0x88], 0
jbe 0x5068b8
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 0x506917
test eax, eax
jne 0x506917
mov dword [esp + 0x10], eax
jmp 0x506924
mov edx, eax
mov ecx, esi
call fcn.0043bb70
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x506935
push eax
call dword [0x5dac88]
add esp, 4
mov esi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
test esi, esi
je 0x506590
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov byte [eax + 0xf0], 0
test ebx, ebx
je 0x5069bb
cmp dword [0x5dac30], 0
je 0x5069b1
mov eax, dword [0x5dfe08]
test eax, eax
je 0x506975
push eax
call dword [0x5dac80]
add esp, 4
push ebx
call dword [0x5dac5c]
sub dword [0x5dfca8], eax
add esp, 4
dec dword [0x5dfccc]
push ebx
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
test eax, eax
je 0x5069bb
push eax
call dword [0x5dac88]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x5dac54]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret