Function at 0x4cfed0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d02c0
sub esp, 0x50
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
xor eax, eax
jmp 0x4cff0f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x4d0149
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x58]
movzx ebp, byte [ebx + eax]
cmp ebp, 0x80
jge 0x4cff34
lea esi, [eax + 1]
jmp 0x4cff4c
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004621c0
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x54]
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 0x4cff83
cmp ecx, 0xfffd
jne 0x4cff0b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jmp 0x4cff95
cmp ecx, 0xfffd
jne 0x4cffd9
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jb 0x4d02b8
sub ecx, edx
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
mov ebp, dword [esp + 0x58]
add ecx, ebp
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.0047b5e0
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4cffd3
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4cff0b
jmp 0x4d0039
mov ebx, dword [esp + 0x28]
jmp 0x4d0039
test ecx, ecx
jge 0x4cffe4
mov ecx, 0xffffffff
jmp 0x4d0037
cmp ecx, 0x7f
jg 0x4cfff0
mov ecx, 1
jmp 0x4d0037
cmp ecx, 0x7ff
jg 0x4cffff
mov ecx, 2
jmp 0x4d0037
lea edx, [ecx - 0xd800]
cmp edx, 0x7ff
ja 0x4d0014
mov ecx, 0xffffffff
jmp 0x4d0037
cmp ecx, 0xffff
jg 0x4d0023
mov ecx, 3
jmp 0x4d0037
cmp ecx, 0x10ffff
jg 0x4d0032
mov ecx, 4
jmp 0x4d0037
mov ecx, 0xffffffff
mov eax, ecx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
lea edx, [ecx + 4]
mov dword [esp + 4], edx
call fcn.004ccb10
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
jb 0x4d02b3
mov eax, dword [esp + 0x3c]
nop
test eax, eax
je 0x4d007a
lea ebx, [esp + 0x3c]
cmp eax, ebx
je 0x4d0082
jmp 0x4d029b
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
lea ebp, [ecx + ebx]
mov esi, dword [esp + 0x40]
cmp eax, ebp
jae 0x4d00cb
mov dword [esp + 0x38], ebx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], eax
lea edx, [esi + ebx]
mov dword [esp], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004721c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x4d011e
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ccbb0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
lea eax, [ebp + ebx]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jb 0x4d0296
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x58]
add eax, ecx
jmp 0x4d014f
mov ebx, ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4d0163
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], eax
xor ecx, ecx
jmp 0x4d017b
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
jge 0x4d0254
movzx ebp, byte [eax + ecx]
cmp ebp, 0x80
jge 0x4d0192
inc ecx
jmp 0x4d01aa
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004621c0
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 4]
test eax, eax
jl 0x4d016f
cmp eax, 0x80
jge 0x4d0243
mov ecx, dword [esp + 0x3c]
nop
nop
test ecx, ecx
je 0x4d01df
lea ebx, [esp + 0x3c]
cmp ecx, ebx
je 0x4d01e7
jmp 0x4d027e
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
inc ebx
mov ebp, dword [esp + 0x40]
cmp ecx, ebx
jae 0x4d0236
mov dword [esp + 0x24], eax
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], ebx
mov byte [ebx + ebp - 1], al
jmp 0x4d016f
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.004ccbb0
jmp 0x4d016f
mov eax, dword [esp + 0x40]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x44]
cmp edx, eax
ja 0x4d0270
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
add esp, 0x50
ret
test ecx, ecx
je 0x4d0279
call fcn.00462020
call fcn.00462060
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
call fcn.00471910
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
call fcn.004718d0
mov eax, edx
call fcn.00471910
nop
call fcn.00470430
jmp fcn.004cfed0