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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x40], edx
xorps xmm0, xmm0
mov dword [esp + 0xc], ebx
push edi
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x34], 0
call fcn.004e4f50
test eax, eax
jne 0x5099e8
push eax
push 0x288
call fcn.0043b050
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
je 0x5099e8
lea eax, [esi + 0x238]
mov ecx, ebx
mov dword [esp + 0x60], eax
lea edx, [esp + 0x50]
add eax, 0x10
mov dword [esp + 0x24], eax
call fcn.00508640
mov edi, eax
test edi, edi
jne 0x50991d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
nop dword [eax]
cmp dword [esp + 0x44], 0
jle 0x509905
mov eax, dword [ebx + 0x100]
mov ecx, ebx
shl eax, 0xa
cdq
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x48], edx
mov edx, 0x1c
push 0
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
call fcn.004fa580
mov eax, dword [ebp + 8]
mov ecx, 2
mov ebx, dword [esp + 0x14]
cmp eax, 2
cmovl eax, ecx
cdq
push edx
push eax
push 1
push ebx
call fcn.00467fa0
add esp, 0x18
xor edi, edi
test ebx, ebx
jne 0x508cdf
push str.API_called_with_NULL_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
jmp 0x508cff
cmp dword [ebx], edi
jne 0x508cf9
push str.API_called_with_finalized_prepared_statement
push 0x15
call fcn.0043e300
add esp, 8
mov eax, 1
jmp 0x508cfb
xor eax, eax
test eax, eax
je 0x508d33
push 0x5cad1c
push 0x15841
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0043e300
add esp, 0x14
or esi, 0xffffffff
mov dword [esp + 0xc], esi
test ebx, ebx
jne 0x50912a
xor edi, edi
jmp 0x5091e3
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x508d4a
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, ebx
call fcn.00466700
mov esi, eax
cmp esi, 0x11
jne 0x508f6c
nop dword [eax]
mov ecx, edi
inc edi
mov dword [esp + 0x38], edi
cmp ecx, 0x32
jge 0x508f6c
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x64]
mov esi, dword [ebx]
mov edx, dword [ebx + 0xc8]
push 0
push ecx
mov dword [esp + 0x28], 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 0x508ea1
mov esi, dword [esp + 0x64]
lea edi, [esp + 0x70]
mov ecx, 0x3a
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x64]
mov ecx, 0x3a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea esi, [esp + 0x70]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x64]
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 0x508e68
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 0x508e86
mov byte [ebx + 0x93], 0xfe
mov ecx, ebx
call fcn.00466700
mov esi, eax
cmp esi, 0x11
jne 0x508f6c
mov edi, dword [esp + 0x38]
jmp 0x508d60
cmp edi, 7
jne 0x508ead
mov ecx, esi
call fcn.0043ba90
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x508ebf
xor esi, esi
jmp 0x508ef2
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x508edc
cmp byte [ecx + 0x12], 1
jne 0x508edc
mov esi, dword [ecx + 8]
jmp 0x508eee
test dl, 1
je 0x508ee5
xor esi, esi
jmp 0x508eee
mov dl, 1
call fcn.00460000
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x508f00
mov ecx, eax
call fcn.0043b330
mov edx, dword [esp + 0xc]
cmp byte [edx + 0x57], 0
jne 0x508fda
test esi, esi
jne 0x508f16
xor eax, eax
jmp 0x508f59
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x508f20
sub ecx, dword [esp + 0x20]
push 0
lea eax, [ecx + 1]
mov ecx, edx
push eax
mov dword [esp + 0x28], eax
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
je 0x508f59
push dword [esp + 0x20]
push esi
push eax
call fcn.00570750
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, edi
mov dword [ebx + 0x7c], eax
call fcn.0043bb70
mov esi, eax
mov dword [ebx + 0x24], esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x508f81
push eax
call dword [0x5dac88]
add esp, 4
cmp esi, 0x64
jne 0x508d1d
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x508f9d
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x508faf
xor eax, eax
cmp ax, word [ebx + 0x90]
jb 0x508fc7
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 0x508feb
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x18], esi
jmp 0x509028
mov esi, 7
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x24], esi
jmp 0x508f70
test al, 8
je 0x508ffe
movsd xmm0, qword [ecx]
call fcn.0045f320
mov dword [esp + 0x18], edx
jmp 0x509028
test al, 0x12
je 0x509013
cmp dword [ecx + 8], 0
je 0x509013
call fcn.0045f350
mov dword [esp + 0x18], edx
jmp 0x509028
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x14], eax
cmp byte [ecx + 0x57], 0
jne 0x50903f
test edx, edx
jne 0x50903f
xor eax, eax
jmp 0x509044
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50905a
push eax
call dword [0x5dac88]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50906d
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x509087
mov eax, 1
cmp ax, word [ebx + 0x90]
jae 0x509087
add ecx, 0x28
jmp 0x50909f
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 0x5090b2
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x2c], eax
jmp 0x5090ef
test al, 8
je 0x5090c7
movsd xmm0, qword [ecx]
call fcn.0045f320
mov esi, eax
mov dword [esp + 0x2c], edx
jmp 0x5090ef
test al, 0x12
je 0x5090e2
cmp dword [ecx + 8], 0
je 0x5090e2
call fcn.0045f350
mov esi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], edx
jmp 0x5090f3
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x509106
test edx, edx
jne 0x509106
xor eax, eax
jmp 0x50910b
call fcn.0043bb70
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x508d24
push eax
call dword [0x5dac88]
add esp, 4
jmp 0x508d24
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x509141
push eax
call dword [0x5dac80]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x50915e
jg 0x509155
cmp dword [ebx + 0x88], 0
jbe 0x50915e
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 0x5091bb
test eax, eax
jne 0x5091bb
xor edi, edi
jmp 0x5091c6
mov edx, eax
mov ecx, edi
call fcn.0043bb70
mov edi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5091db
push eax
call dword [0x5dac88]
add esp, 4
test edi, edi
jne 0x5092f6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5092f6
mov edi, dword [esp + 0x50]
lea esi, [eax - 1]
xor ebx, ebx
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
mov dword [esp + 0x38], ebx
movlpd qword [esp + 0x28], xmm0
cmp byte [esi + edi], bl
jge 0x509218
mov edi, 0x10b
jmp 0x509294
test esi, esi
jle 0x50922b
lea eax, [edi - 1]
add eax, esi
cmp byte [eax], bl
jge 0x509234
dec esi
dec eax
test esi, esi
jg 0x509221
jne 0x509234
mov edi, 0x10b
jmp 0x509294
dec esi
test esi, esi
jle 0x50924a
lea eax, [edi - 1]
add eax, esi
nop
cmp byte [eax], bl
jge 0x50924a
dec esi
dec eax
test esi, esi
jg 0x509240
mov eax, esi
lea ecx, [esi + edi]
lea edx, [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], eax
call fcn.004ea4d0
add esi, eax
mov al, byte [esi + edi]
lea ecx, [esi + edi]
test al, al
jns 0x50927b
lea edx, [esp + 0x38]
call fcn.004ea670
mov ebx, dword [esp + 0x38]
jmp 0x509283
movzx ebx, al
mov eax, 1
lea edi, [eax + esi]
sub edi, dword [esp + 0x20]
neg edi
sbb edi, edi
and edi, 0x10b
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test esi, esi
js 0x509487
push dword [esp + 0x48]
push dword [esp + 0x60]
push eax
push ecx
call fcn.00596c20
push dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov esi, edx
push dword [esp + 0x60]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00596c20
cmp edx, esi
jg 0x50947b
jl 0x5092e6
cmp eax, dword [esp + 0x38]
jae 0x50947b
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
test esi, esi
jle 0x5098fd
test edx, edx
jl 0x5098f8
jg 0x509320
test ecx, ecx
jb 0x5098f8
cmp edx, dword [esp + 0x5c]
jg 0x5098f8
jl 0x509334
test ecx, ecx
jne 0x5098f8
push 0x288
push 0
push dword [esp + 0x24]
call fcn.00570cd0
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov dword [eax + 0xc], 1
test edi, edi
jne 0x5098d2
push dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x50]
push dword [esp + 0x18]
call fcn.00504d60
mov ebx, dword [esp + 0x54]
add esp, 8
mov edi, eax
test ebx, ebx
je 0x509390
cmp dword [esp + 0x40], 0
je 0x5094ff
cmp ebx, 1
jne 0x5094ff
mov ebx, dword [esp + 0x14]
mov edx, 0xf
mov eax, dword [esp + 0x18]
add ebx, 1
mov ecx, dword [esp + 0x10]
adc eax, 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x68]
push 0
push eax
call fcn.004fa580
mov edi, eax
add esp, 8
test edi, edi
jne 0x5094fb
mov edi, dword [esp + 0x48]
mov ecx, ebx
mov esi, dword [esp + 0x68]
add ecx, 1
mov eax, edi
adc eax, 0
push eax
push ecx
push 1
push esi
call fcn.00467fa0
shrd ebx, edi, 0xa
shr edi, 0xa
add ebx, 1
adc edi, 0
shld edi, ebx, 0xa
push edi
shl ebx, 0xa
push ebx
push 2
push esi
call fcn.00467fa0
push esi
xor ebx, ebx
call fcn.004669b0
add esp, 0x24
cmp eax, 0x64
jne 0x5094e0
test esi, esi
je 0x50944e
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x509429
push eax
call dword [0x5dac80]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x50943b
xor ecx, ecx
cmp cx, word [esi + 0x90]
jb 0x509453
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov eax, 0x5b3788
movzx eax, word [eax + 0x10]
and eax, 0x3f
mov bl, byte [eax + 0x5b74a8]
mov byte [esp + 0x3f], bl
test esi, esi
je 0x5094d6
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x5094bb
test edx, edx
jne 0x5094bb
xor eax, eax
jmp 0x5094c0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
cmp dword [ebp + 8], esi
mov edx, eax
mov dword [esp + 0x14], ecx
cmovg esi, dword [ebp + 8]
mov eax, esi
mov dword [esp + 0x18], edx
cmp eax, ebx
mov dword [esp + 0x40], 1
mov esi, ebx
cmovl esi, eax
mov eax, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x34], eax
jmp 0x509302
call fcn.0043bb70
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5094d6
push eax
call dword [0x5dac88]
add esp, 4
xor ebx, ebx
cmp byte [esp + 0x3f], 5
sete bl
push esi
call fcn.00465900
mov esi, dword [esp + 0x10]
add esp, 4
mov edi, eax
test ebx, ebx
je 0x5094fb
mov eax, dword [esp + 0x60]
or dword [eax + 0xc], 2
mov ebx, dword [esp + 0x4c]
test edi, edi
jne 0x5098d2
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00502390
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5098d2
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x14], esi
jne 0x5098d2
mov edi, dword [esp + 0x24]
mov edx, edi
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
push dword [eax + 4]
push dword [eax]
call fcn.004fec60
mov edi, eax
add esp, 8
test edi, edi
jne 0x5098d2
mov edx, dword [esp + 0x24]
xor esi, esi
mov ecx, dword [esp + 0x10]
call fcn.004fed40
mov edi, eax
test edi, edi
jne 0x509576
lea esi, [eax + 1]
jmp 0x50957f
cmp edi, 0x64
jne 0x5098ed
cmp dword [esp + 0x40], 0
je 0x5095b3
test ebx, ebx
jle 0x5095b3
mov eax, dword [esp + 0x24]
lea edx, [ebx - 1]
push dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, edi
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00503d80
add esp, 0x14
jmp 0x5095d3
push dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, ebx
push dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.005051e0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x5097bd
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], eax
je 0x5097bd
test esi, esi
jne 0x509629
mov ebx, dword [esp + 0x24]
mov edx, ecx
mov ecx, edi
push ebx
call fcn.005032c0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x509615
mov edx, ebx
mov ecx, edi
call fcn.004fed40
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
cmp eax, 0x64
jne 0x509629
mov eax, dword [esp + 0x44]
cmp dword [ecx + 4], eax
jl 0x5095f3
jmp 0x509631
test eax, eax
jne 0x5097bd
or eax, 0xffffffff
xor esi, esi
sub eax, dword [ecx + 4]
mov ecx, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov ebx, dword [eax + 4]
sub ebx, 1
js 0x509748
nop dword [eax]
test ecx, ecx
jne 0x509764
mov edx, dword [eax + 4]
xor edi, edi
test edx, edx
jle 0x509681
mov eax, dword [eax]
mov edi, dword [eax]
cmp dword [edi], ebx
je 0x509681
inc ecx
add eax, 4
cmp ecx, edx
jl 0x509673
cmp dword [edi + 0x28], 0
jne 0x50970c
mov eax, dword [edi + 8]
xor ecx, ecx
or eax, dword [edi + 0xc]
je 0x5096ec
push ecx
lea eax, [esp + 0x70]
lea edx, [ecx + 0x11]
mov ecx, dword [esp + 0x14]
push eax
call fcn.004fa580
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x509733
push dword [edi + 0xc]
mov esi, dword [esp + 0x70]
push dword [edi + 8]
push 1
push esi
call fcn.00467fa0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 2
push esi
call fcn.00467fa0
push esi
call fcn.004669b0
add esp, 0x24
push esi
call fcn.00465900
mov esi, dword [esp + 0x44]
add esp, 4
mov ecx, eax
test ecx, ecx
jne 0x509733
push dword [esp + 0x18]
mov edx, dword [edi]
push dword [esp + 0x18]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00505c70
add esp, 8
mov ecx, eax
jmp 0x509737
push dword [edi + 0x3c]
mov edx, dword [edi]
push dword [edi + 0x40]
mov edi, dword [esp + 0x18]
mov ecx, edi
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00506df0
add esp, 0x10
mov ecx, eax
inc esi
mov dword [esp + 0x40], esi
jmp 0x509737
mov edi, dword [esp + 0x10]
sub ebx, 1
mov eax, dword [esp + 0x24]
jns 0x509660
test ecx, ecx
jne 0x509764
mov ebx, dword [esp + 0x14]
cmp esi, dword [eax + 4]
je 0x509768
push dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.00506040
add esp, 8
mov ecx, eax
jmp 0x509768
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
test esi, esi
je 0x509877
mov edi, dword [esp + 0x30]
mov dword [esp + 0x34], 1
lea esi, [edi + 0x14]
test ecx, ecx
jne 0x5097bd
cmp esi, dword [esp + 0x58]
jle 0x5097f2
call fcn.004e4f50
test eax, eax
jne 0x5097b5
mov ecx, dword [esp + 0x50]
mov eax, esi
cdq
push edx
push eax
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x5097b5
mov dword [esp + 0x58], esi
mov dword [esp + 0x50], eax
jmp 0x5097f6
mov dword [esp + 0xc], 7
mov esi, dword [esp + 0x1c]
mov edx, esi
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
neg ecx
mov dword [esi + 0x28], ecx
mov ecx, ebx
adc eax, 0
neg eax
mov dword [esi + 0x2c], eax
lea eax, [esp + 0xc]
push eax
call fcn.005034f0
mov edi, dword [esp + 0x10]
add esp, 4
jmp 0x5098da
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
lea esi, [edi + eax]
mov edx, ebx
nop
mov bl, dl
mov edi, esi
shrd edx, ecx, 7
or bl, 0x80
mov byte [esi], bl
mov eax, edx
shr ecx, 7
inc esi
or eax, ecx
jne 0x509800
mov eax, dword [esp + 0x30]
and bl, 0x7f
mov edx, dword [esp + 0x50]
mov byte [edi], bl
lea ecx, [eax + edx]
sub esi, ecx
add eax, esi
mov dword [esp + 0x30], eax
lea esi, [edx + eax]
mov eax, dword [esp + 0x40]
cdq
mov ecx, eax
nop dword [eax]
mov bl, cl
mov edi, esi
shrd ecx, edx, 7
or bl, 0x80
mov byte [esi], bl
mov eax, ecx
shr edx, 7
inc esi
or eax, edx
jne 0x509840
mov ecx, dword [esp + 0x30]
and bl, 0x7f
mov eax, dword [esp + 0x50]
add eax, ecx
mov byte [edi], bl
sub esi, eax
add ecx, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x54], ecx
jmp 0x5097bd
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov ecx, edi
call fcn.005034f0
mov esi, dword [esp + 0x4c]
add esp, 4
cmp byte [ebx + 0x30], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], eax
jne 0x5098ce
push dword [ebx + 0x2c]
mov ecx, dword [esp + 0x18]
push dword [ebx + 0x28]
mov eax, dword [esp + 0x20]
add ecx, 1
adc eax, 0
push eax
push ecx
mov ecx, edi
call fcn.004ff6d0
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
call fcn.004ff4c0
test edi, edi
je 0x508c60
jmp 0x509905
mov ecx, dword [esp + 0x24]
call fcn.004ff4c0
jmp 0x5098fd
mov edi, 0x10b
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x34], 0
je 0x50991d
test edi, edi
jne 0x50991d
lea edx, [esp + 0x50]
mov ecx, ebx
call fcn.00508200
mov edi, eax
cmp dword [0x5dac30], 0
je 0x50996b
mov eax, dword [0x5dfe08]
test eax, eax
je 0x509939
push eax
call dword [0x5dac80]
add esp, 4
push esi
call dword [0x5dac5c]
sub dword [0x5dfca8], eax
add esp, 4
dec dword [0x5dfccc]
push esi
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
test eax, eax
je 0x50997a
push eax
call dword [0x5dac88]
jmp 0x509972
push esi
call dword [0x5dac54]
mov eax, dword [0x5dfe08]
add esp, 4
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x5099df
cmp dword [0x5dac30], 0
je 0x5099d5
test eax, eax
je 0x509999
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 0x5099df
push eax
call dword [0x5dac88]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x5dac54]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret