Function at 0x4dfd80
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x4e03a0
sub esp, 0xa0
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x4dfdfa
mov ebx, dword [esp + 0xcc]
lea ebp, [ebx - 1]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xa4]
xor edi, edi
xor eax, eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x90], ecx
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
jmp 0x4e01b2
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x90], eax
mov ebp, dword [esp + 0xbc]
cmp ebp, 0xa
jne 0x4dfe30
mov ebp, eax
jmp 0x4dffd7
mov esi, eax
jmp 0x4dfe54
mov ebp, esi
mov esi, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov ebx, eax
mov eax, dword [esp + 0x84]
test edx, edx
je 0x4dfef8
mov dword [esp + 0x5c], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], eax
call fcn.004e0e30
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x8c], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x88], ebx
mov ebp, dword [esp + 0x90]
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
jmp 0x4dff73
mov ebx, dword [esp + 0x84]
jmp 0x4dfe34
mov edx, dword [esp + 0xb0]
jmp 0x4dff08
mov byte [eax + edx - 1], 0x30
mov eax, ebx
test eax, eax
jle 0x4dff15
lea ebx, [eax - 1]
cmp esi, ebx
ja 0x4dff01
jmp 0x4dff1c
add esp, 0xa0
ret
mov eax, ebx
mov ecx, esi
call fcn.004718b0
mov byte [ebx + edi - 1], dl
mov edx, dword [esp + 0x50]
dec edx
mov dword [esp + 0x50], edx
mov ebx, eax
mov eax, ecx
mov edi, dword [esp + 0xbc]
xor edx, edx
div edi
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x8c]
mov esi, edi
mov edi, dword [esp + 0xb0]
mov ecx, eax
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
test edx, edx
jle 0x4dfeec
mov ebx, dword [esp + 0x84]
test ebx, ebx
jle 0x4dfe34
test esi, esi
je 0x4dffc5
mov eax, ecx
xor edx, edx
div esi
cmp edx, 0x3e
jae 0x4dffb9
lea eax, [ebx - 1]
lea esi, [0x73100d]
movzx edx, byte [esi + edx]
cmp ebp, eax
ja 0x4dff25
mov ecx, ebp
call fcn.004718b0
mov eax, edx
mov ecx, 0x3e
call fcn.004718c0
call fcn.004351b0
mov edx, dword [esp + 0x8c]
mov ecx, ebx
mov ebx, eax
mov eax, edi
test edx, edx
je 0x4e004b
mov dword [esp + 0x5c], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], eax
call fcn.004e0e30
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x8c], edx
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x90]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
jmp 0x4e0079
mov esi, ebp
jmp 0x4dfef8
add ecx, 0x30
mov byte [edi + esi - 1], cl
mov ecx, dword [esp + 0x54]
dec ecx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x54], ecx
mov ecx, edx
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov edx, dword [esp + 0x54]
test edx, edx
jle 0x4dffca
test edi, edi
jle 0x4dffca
lea eax, [edi - 1]
mov dword [esp + 0x88], eax
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
shl eax, 1
sub ecx, eax
mov eax, dword [esp + 0x88]
cmp ebp, eax
ja 0x4e0052
mov ecx, ebp
call fcn.004718b0
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x94], eax
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x48], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x4c], esi
mov edi, dword [esp + 0xb8]
sub edi, edx
mov dword [esp + 0x90], edi
sub ebx, edx
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, edx
mov edx, dword [esp + 0xb0]
add edi, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x7c], edx
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x58]
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x2c], ecx
call fcn.004dfd80
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x98]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x80]
cmp dword [0x8ed3b8], eax
jge 0x4e0331
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x9c], esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x48], edi
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004db0a0
mov eax, dword [esp + 0xc]
mov ecx, eax
sar eax, 1
mov edx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xc8]
mov ebp, dword [esp + 0x58]
jmp 0x4e0343
cmp edx, ebp
jbe 0x4e038d
lea esi, [ebp + ebp*4]
lea edi, [ebx + esi*4 + 0xc]
cmp dword [edi], ecx
jge 0x4e0222
xor eax, eax
jmp 0x4e0283
mov dword [esp + 0x84], ebp
mov eax, dword [ebx + esi*4]
mov ecx, dword [ebx + esi*4 + 4]
mov edx, dword [ebx + esi*4 + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x14], edx
call fcn.004d8780
mov eax, dword [esp + 0x18]
test eax, eax
setge al
mov edx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xc8]
mov ebp, dword [esp + 0x84]
test al, al
je 0x4e0290
dec ebp
test ebp, ebp
jl 0x4e0375
cmp edx, ebp
jbe 0x4e036c
mov dword [esp + 0x58], ebp
lea eax, [ebp + ebp*4]
mov dword [esp + 0x80], eax
mov ecx, dword [ebx + eax*4]
mov edx, dword [ebx + eax*4 + 4]
mov esi, dword [ebx + eax*4 + 8]
mov edi, dword [esp + 0x9c]
mov dword [esp], edi
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
call fcn.004e0ad0
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + eax*4 + 0x10]
mov edx, dword [esp + 0x90]
mov ebx, edx
sub edx, eax
cmp ebx, edx
jae 0x4e00ba
jmp 0x4e0363
mov edx, eax
mov ebx, esi
mov eax, dword [esp + 0x90]
jmp 0x4dfe16
mov ebp, esi
test ebp, ebp
jle 0x4e020a
lea esi, [ebp - 1]
cmp edx, esi
jbe 0x4e0396
lea edi, [ebp + ebp*4]
lea edi, [ebx + edi*4 - 8]
cmp dword [edi], eax
jg 0x4e0341
jmp 0x4e020a
mov eax, edx
mov ecx, ebx
call fcn.00471910
mov eax, ebp
mov ecx, edx
call fcn.004718b0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a5e8]
mov dword [esp + 4], eax
call fcn.0046a9e0
mov eax, ebp
mov ecx, edx
call fcn.004718b0
mov eax, esi
mov ecx, edx
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.004dfd80