Function at 0x50a240
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x64], edx
lea eax, [esp + 0x30]
movlpd qword [esp + 0x50], xmm0
mov edi, ecx
movlpd qword [esp + 0x40], xmm0
push 0
push eax
mov edx, 0x1b
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], 0
call fcn.004fa580
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
test esi, esi
jne 0x50af61
mov eax, dword [edi + 0x118]
mov ebx, dword [esp + 0x30]
cdq
push edx
push eax
push 1
push ebx
call fcn.00467fa0
mov eax, dword [edi + 0x100]
cdq
push edx
push eax
push 2
push ebx
call fcn.00467fa0
mov ecx, dword [esp + 0x74]
add esp, 0x20
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
nop
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x50a67d
cmp dword [ebx], 0
jne 0x50a2fb
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
mov eax, 1
jmp 0x50a2fd
xor eax, eax
test eax, eax
jne 0x50a68c
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50a31c
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, ebx
call fcn.00466700
mov edi, eax
cmp edi, 0x11
jne 0x50a470
nop
mov eax, dword [esp + 0x1c]
mov ecx, eax
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, 0x32
jge 0x50a46c
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x24]
mov esi, dword [ebx]
mov edx, dword [ebx + 0xc8]
push 0
push ecx
mov dword [esp + 0x30], 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 0x50a4e9
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x68]
mov ecx, 0x3a
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
mov ecx, 0x3a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea esi, [esp + 0x68]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
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 0x50a43c
mov ecx, esi
call fcn.00463720
mov ecx, esi
call fcn.00463800
push ebx
call fcn.00465900
add esp, 4
cmp dword [esp + 0x28], 0
jl 0x50a45a
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.00466700
mov edi, eax
cmp edi, 0x11
je 0x50a330
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50a485
push eax
call dword [0x5dac88]
add esp, 4
cmp edi, 0x64
jne 0x50a6aa
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50a4a1
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x50a4b3
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x50a4cb
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 0x50a5c9
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], eax
jmp 0x50a602
cmp edi, 7
jne 0x50a4f5
mov ecx, esi
call fcn.0043ba90
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x50a507
xor esi, esi
jmp 0x50a53a
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x50a524
cmp byte [ecx + 0x12], 1
jne 0x50a524
mov esi, dword [ecx + 8]
jmp 0x50a536
test dl, 1
je 0x50a52d
xor esi, esi
jmp 0x50a536
mov dl, 1
call fcn.00460000
mov esi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x50a548
mov ecx, eax
call fcn.0043b330
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
jne 0x50a5b1
test esi, esi
jne 0x50a55a
xor eax, eax
jmp 0x50a599
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a560
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x30], eax
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
je 0x50a599
push dword [esp + 0x28]
push esi
push eax
call fcn.00570750
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, edi
mov dword [ebx + 0x7c], eax
call fcn.0043bb70
mov edi, eax
mov dword [ebx + 0x24], edi
jmp 0x50a46c
mov esi, dword [esp + 0x14]
mov edi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], edi
jmp 0x50a474
test al, 8
je 0x50a5dc
movsd xmm0, qword [ecx]
call fcn.0045f320
mov dword [esp + 0x54], edx
jmp 0x50a5fe
test al, 0x12
je 0x50a5f1
cmp dword [ecx + 8], 0
je 0x50a5f1
call fcn.0045f350
mov dword [esp + 0x54], edx
jmp 0x50a5fe
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x50a615
test edx, edx
jne 0x50a615
xor eax, eax
jmp 0x50a61a
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50a630
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [esp + 0x20]
xor edi, edi
cmp dword [eax + 0x100], edi
jle 0x50a673
mov esi, dword [esp + 0x18]
mov ebx, eax
lea eax, [esp + 0x34]
mov edx, esi
push eax
push edi
mov ecx, ebx
call fcn.0050a050
xor dword [esp + 0x60], eax
inc edi
xor dword [esp + 0x64], edx
add esp, 8
cmp edi, dword [ebx + 0x100]
jl 0x50a644
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
test esi, esi
je 0x50a2d0
jmp 0x50a6aa
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
je 0x50a75b
mov edi, dword [ebx]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x50a6c5
push eax
call dword [0x5dac80]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x50a6e2
jg 0x50a6d9
cmp dword [ebx + 0x88], 0
jbe 0x50a6e2
mov edx, ebx
mov ecx, edi
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 [edi + 0x57], 0
jne 0x50a73f
test eax, eax
jne 0x50a73f
xor ebx, ebx
jmp 0x50a74a
mov edx, eax
mov ecx, edi
call fcn.0043bb70
mov ebx, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x50a75b
push eax
call dword [0x5dac88]
add esp, 4
test esi, esi
jne 0x50af4c
mov eax, ebx
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x50af50
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x3c], esi
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xe0]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x30], eax
call fcn.0043e130
mov edi, eax
add esp, 8
test edi, edi
jne 0x50a80c
mov dword [esp + 0x14], 7
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x50a7e7
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x50aee3
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
push 0x5cacbc
push 0x15592
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0043e300
add esp, 0x1c
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x58], edi
jne 0x50a7fb
cmp dword [esp + 0x5c], ebx
je 0x50af5d
mov ecx, dword [esp + 0x64]
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x3c]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, edi
call fcn.004adf50
add esp, 0x14
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp dword [0x5dac30], esi
je 0x50a87c
mov eax, dword [0x5dfe08]
test eax, eax
je 0x50a84a
push eax
call dword [0x5dac80]
add esp, 4
push edi
call dword [0x5dac5c]
sub dword [0x5dfca8], eax
add esp, 4
dec dword [0x5dfccc]
push edi
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
test eax, eax
je 0x50a886
push eax
call dword [0x5dac88]
jmp 0x50a883
push edi
call dword [0x5dac54]
add esp, 4
mov esi, dword [esp + 0x3c]
test ebx, ebx
jne 0x50a7a3
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x2c], edi
nop
mov dword [esp + 0x1c], 0
test esi, esi
je 0x50aeb1
cmp dword [esi], 0
jne 0x50a8cb
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
mov eax, 1
jmp 0x50a8cd
xor eax, eax
test eax, eax
jne 0x50aec0
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50a8ec
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, esi
call fcn.00466700
mov dword [esp + 0x18], eax
cmp eax, 0x11
jne 0x50aa4c
mov eax, dword [esp + 0x1c]
mov ecx, eax
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, 0x32
jge 0x50aa48
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x60]
mov edi, dword [esi]
mov edx, dword [esi + 0xc8]
push 0
push ecx
mov dword [esp + 0x2c], eax
mov ecx, edi
movzx eax, byte [esi + 0x94]
push esi
push eax
push 0xffffffffffffffff
call fcn.004adf50
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
jne 0x50aac3
mov esi, dword [esp + 0x60]
lea edi, [esp + 0x68]
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
mov ecx, 0x3a
mov edi, dword [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x68]
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
mov edx, esi
mov edi, dword [esp + 0x60]
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], 0
cmp byte [edi + 0x95], 1
jb 0x50aa16
mov ecx, edi
call fcn.00463720
mov ecx, edi
call fcn.00463800
push esi
call fcn.00465900
add esp, 4
cmp dword [esp + 0x24], 0
jl 0x50aa34
mov byte [esi + 0x93], 0xfe
mov ecx, esi
call fcn.00466700
mov dword [esp + 0x18], eax
cmp eax, 0x11
je 0x50a900
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x50aa61
push eax
call dword [0x5dac88]
add esp, 4
cmp dword [esp + 0x18], 0x64
jne 0x50a7ab
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50aa7f
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x50aa91
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x50aaa9
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 0x50abb4
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], ecx
jmp 0x50abf1
cmp eax, 7
jne 0x50aacf
mov ecx, edi
call fcn.0043ba90
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x50aae1
xor edi, edi
jmp 0x50ab14
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x50aafe
cmp byte [ecx + 0x12], 1
jne 0x50aafe
mov edi, dword [ecx + 8]
jmp 0x50ab10
test dl, 1
je 0x50ab07
xor edi, edi
jmp 0x50ab10
mov dl, 1
call fcn.00460000
mov edi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x50ab22
mov ecx, eax
call fcn.0043b330
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x57], 0
jne 0x50ab95
test edi, edi
jne 0x50ab34
xor eax, eax
jmp 0x50ab79
mov ecx, edi
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ab40
sub ecx, dword [esp + 0x1c]
push 0
lea eax, [ecx + 1]
mov ecx, edx
push eax
mov dword [esp + 0x24], eax
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x50ab79
push dword [esp + 0x1c]
push edi
push eax
call fcn.00570750
mov eax, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x7c], eax
call fcn.0043bb70
mov dword [esp + 0x18], eax
mov dword [esi + 0x24], eax
jmp 0x50aa48
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x7c], 0
mov dword [esp + 0x18], 7
mov dword [esi + 0x24], 7
jmp 0x50aa50
test al, 8
je 0x50abc7
movsd xmm0, qword [ecx]
call fcn.0045f320
mov dword [esp + 0x10], edx
jmp 0x50abf1
test al, 0x12
je 0x50abdc
cmp dword [ecx + 8], 0
je 0x50abdc
call fcn.0045f350
mov dword [esp + 0x10], edx
jmp 0x50abf1
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x48], eax
cmp byte [ecx + 0x57], 0
jne 0x50ac08
test edx, edx
jne 0x50ac08
xor eax, eax
jmp 0x50ac0d
call fcn.0043bb70
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50ac23
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
cmp dword [eax + 0x2c], 0
je 0x50ac4b
mov eax, dword [eax + 0x18]
inc eax
push eax
push esi
call fcn.004674e0
mov dword [esp + 0x38], eax
add esp, 8
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov edx, 0x28
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
nop word [eax + eax]
cmp ecx, dword [eax + 0x18]
jge 0x50a8a0
mov eax, dword [eax + 0x20]
cmp byte [ecx + eax], 0
jne 0x50ae90
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50ac8d
push eax
call dword [0x5dac80]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esi + 0x78]
test edx, edx
je 0x50acb2
movzx eax, word [esi + 0x90]
inc ecx
cmp ecx, eax
jge 0x50acb2
test ecx, ecx
js 0x50acb2
mov ecx, dword [esp + 0x1c]
add ecx, edx
jne 0x50acca
mov dword [esp + 0x14], ecx
jmp 0x50ad01
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x50ace7
cmp byte [ecx + 0x12], 1
jne 0x50ace7
mov eax, dword [ecx + 8]
jmp 0x50acfd
test dl, 1
je 0x50acf6
mov dword [esp + 0x14], 0
jmp 0x50ad01
mov dl, 1
call fcn.00460000
mov dword [esp + 0x14], eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x50ad14
test edx, edx
jne 0x50ad14
xor eax, eax
jmp 0x50ad19
call fcn.0043bb70
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50ad2f
push eax
call dword [0x5dac88]
add esp, 4
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push dword [esp + 0x1c]
mov dword [esp + 0x58], 0
mov ecx, dword [eax + 0x24]
call fcn.004f5cd0
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x50ae65
nop word [eax + eax]
lea eax, [esp + 0x24]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x44], 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x50ae5d
push dword [esp + 0x24]
mov edx, dword [esp + 0x38]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x18]
push dword [esp + 0x54]
push eax
push dword [esp + 0x44]
call fcn.00509f90
mov ecx, dword [esp + 0x64]
xor edi, eax
mov eax, dword [esp + 0x38]
mov esi, 1
add esp, 0x18
mov dword [esp + 0x2c], edi
xor ebx, edx
cmp dword [eax + 0x100], esi
jle 0x50ad70
mov edi, dword [eax + 0x104]
add edi, 0x18
mov edx, dword [edi]
cmp edx, dword [esp + 0x34]
jg 0x50ae44
push dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x54]
push esi
push dword [esp + 0x44]
call fcn.00509f90
xor dword [esp + 0x44], eax
add esp, 0x18
mov eax, dword [esp + 0x20]
xor ebx, edx
inc esi
add edi, 0x18
cmp esi, dword [eax + 0x100]
jl 0x50ae11
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
jmp 0x50ad70
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x50ae76
mov eax, dword [esp + 0x28]
push ecx
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [esp + 0x1c]
cmp eax, 0x65
cmove eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x50ae94
mov eax, dword [esp + 0x14]
inc ecx
add edx, 0x28
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x50a7ab
mov eax, dword [esp + 0x20]
jmp 0x50ac60
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
jmp 0x50a7ab
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x50aef8
push ecx
call dword [0x5dac80]
mov eax, dword [esp + 0x2c]
add esp, 4
cmp dword [esi + 0x8c], 0
jl 0x50af15
jg 0x50af0c
cmp dword [esi + 0x88], 0
jbe 0x50af15
mov edx, esi
mov ecx, eax
call fcn.00465760
mov ecx, esi
call fcn.00463720
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.00463800
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
cmp byte [esi + 0x57], 0
jne 0x50af39
test edx, edx
je 0x50af40
mov ecx, esi
call fcn.0043bb70
mov ecx, esi
call fcn.004e6290
jmp 0x50a7e7
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
jmp 0x50a7eb
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword [ecx], 1
mov esp, ebp
pop ebp
ret