Function at 0x4ec5e0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ecabd
sub esp, 0x60
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
xor eax, eax
jmp 0x4ec621
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jle 0x4ec914
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x68]
movzx ebp, byte [ebx + eax]
cmp ebp, 0x80
jge 0x4ec646
lea esi, [eax + 1]
jmp 0x4ec65e
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0045d2f0
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jne 0x4ec695
cmp ecx, 0xfffd
jne 0x4ec61d
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jmp 0x4ec6a7
cmp ecx, 0xfffd
jne 0x4ec6eb
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jb 0x4ecab5
sub ecx, edx
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
mov ebp, dword [esp + 0x68]
add ecx, ebp
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00494060
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp eax, 1
je 0x4ec6e5
mov ebx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4ec61d
jmp 0x4ec74d
mov ebx, dword [esp + 0x28]
jmp 0x4ec74d
test ecx, ecx
jge 0x4ec6f6
mov ecx, 0xffffffff
jmp 0x4ec749
cmp ecx, 0x7f
jg 0x4ec702
mov ecx, 1
jmp 0x4ec749
cmp ecx, 0x7ff
jg 0x4ec711
mov ecx, 2
jmp 0x4ec749
lea ebx, [ecx - 0xd800]
cmp ebx, 0x7ff
ja 0x4ec726
mov ecx, 0xffffffff
jmp 0x4ec749
cmp ecx, 0xffff
jg 0x4ec735
mov ecx, 3
jmp 0x4ec749
cmp ecx, 0x10ffff
jg 0x4ec744
mov ecx, 4
jmp 0x4ec749
mov ecx, 0xffffffff
mov ebx, eax
mov eax, ecx
nop
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x4ec763
lea esi, [esp + 0x50]
cmp ebp, esi
je 0x4ec76f
jmp 0x4eca9d
lea ebp, [esp + 0x50]
mov dword [esp + 0x50], ebp
lea esi, [esp + 0x50]
mov edx, dword [esp + 0x6c]
lea ebp, [edx + 4]
test ebp, ebp
jl 0x4eca85
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
sub eax, edi
cmp eax, ebp
jl 0x4ec7a1
mov eax, dword [esp + 0x2c]
cmp edx, eax
jmp 0x4ec831
mov dword [esp + 0x34], edi
lea eax, [0x5f1b20]
mov dword [esp], eax
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x40]
lea ecx, [edx + ecx*2 + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 8], ecx
call fcn.0044b240
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x34]
cmp edx, ebx
jl 0x4ec7dd
mov edx, ebx
cmp ecx, eax
je 0x4ec809
mov dword [esp + 0x4c], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00464cc0
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
jmp 0x4ec813
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], eax
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x50]
jb 0x4eca7e
nop
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x4ec849
cmp ebp, esi
je 0x4ec84d
jmp 0x4eca66
mov dword [esp + 0x50], esi
mov ebp, dword [esp + 0x58]
lea edi, [eax + ebp]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
cmp esi, edi
jae 0x4ec896
mov dword [esp + 0x40], ebp
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
lea ecx, [0x5f1b20]
mov dword [esp + 0x10], ecx
call fcn.0044b300
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], edx
lea ecx, [edx + ebp]
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00464cc0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x4ec8e9
lea ecx, [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e8cb0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
lea eax, [ebp + ebx]
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jb 0x4eca61
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x68]
add eax, ecx
jmp 0x4ec91a
mov ebx, ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4ec92e
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
xor ecx, ecx
jmp 0x4ec946
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jge 0x4eca1f
movzx ebp, byte [ecx + eax]
cmp ebp, 0x80
jge 0x4ec95d
inc ecx
jmp 0x4ec975
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045d2f0
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 4]
test eax, eax
jl 0x4ec93a
cmp eax, 0x80
jge 0x4eca0e
nop
nop
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4ec9aa
lea ebx, [esp + 0x50]
cmp ecx, ebx
je 0x4ec9b2
jmp 0x4eca49
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x58]
inc ecx
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x5c]
cmp ebp, ecx
jae 0x4eca01
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5f1b20]
mov dword [esp + 0x10], eax
call fcn.0044b300
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov byte [ecx + ebx - 1], al
jmp 0x4ec93a
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.004e8cb0
jmp 0x4ec93a
mov eax, dword [esp + 0x54]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x58]
cmp edx, eax
ja 0x4eca3b
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
add esp, 0x60
ret
test ecx, ecx
je 0x4eca44
call fcn.0045d1f0
call fcn.0045d230
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66de94]
mov dword [esp + 4], eax
call fcn.00436760
call fcn.00464460
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66de94]
mov dword [esp + 4], eax
call fcn.00436760
mov ecx, eax
call fcn.00464420
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e48c]
mov dword [esp + 4], eax
call fcn.00436760
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66de94]
mov dword [esp + 4], eax
call fcn.00436760
mov eax, edx
call fcn.00464460
nop
call fcn.00462f70
jmp fcn.004ec5e0