Function at 0x4a0450
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a07bd
sub esp, 0x54
mov edx, dword [esp + 0x64]
test edx, edx
jl 0x4a07a4
cmp edx, 9
jg 0x4a078c
mov ebx, dword [esp + 0x5c]
test ebx, ebx
jne 0x4a049c
mov eax, dword [esp + 0x58]
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
add esp, 0x54
ret
cmp ebx, 0x10000
jb 0x4a04b0
mov ebp, ebx
shr ebx, 0x10
mov eax, 0x10
jmp 0x4a04b4
mov ebp, ebx
xor eax, eax
cmp ebx, 0x100
jb 0x4a04c2
shr ebx, 8
add eax, 8
cmp ebx, 0x100
jae 0x4a0780
lea esi, [0x62c450]
movzx ebx, byte [esi + ebx]
lea esi, [ebx + eax]
cmp esi, 0x19
jge 0x4a04f9
lea ecx, [ebx + eax - 0x19]
neg ecx
cmp ecx, 0x20
sbb eax, eax
shl ebp, cl
and ebp, eax
mov eax, dword [esp + 0x60]
lea eax, [esi + eax - 0x19]
jmp 0x4a04fd
mov eax, dword [esp + 0x60]
imul ecx, eax, 0x13441
add ecx, 0x1ce618
sar ecx, 0x12
sub edx, ecx
mov dword [esp + 0x50], edx
lea ecx, [edx - 1]
cmp ecx, 0x1b
jg 0x4a0525
test ecx, ecx
xchg esi, ebx
setge bl
xchg esi, ebx
jmp 0x4a0527
xor esi, esi
mov dword [esp + 0x1c], ecx
xchg esi, eax
mov byte [esp + 0x1a], al
xchg esi, eax
mov dword [esp + 0x20], ebp
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004a2690
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
movzx edx, byte [esp + 0x14]
test ecx, ecx
jge 0x4a0768
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x50]
lea ebp, [ebx + 9]
cmp ebp, 0xa
jae 0x4a05a5
mov ebp, dword [esp + 0x20]
test ebp, ebp
xchg esi, ebx
sete bl
xchg esi, ebx
and esi, 1
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a0665
mov byte [esp + 0x1b], dl
mov esi, dword [esp + 0x1c]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov dword [esp + 0x28], esi
xor edi, edi
xor edi, edi
mov dword [esp + 0x24], edi
xor edi, edi
jmp 0x4a0694
movzx ebp, byte [esp + 0x1a]
mov esi, ecx
neg ecx
cmp ecx, 0x20
sbb edi, edi
mov ebx, 1
shl ebx, cl
and ebx, edi
dec ebx
shr eax, cl
and eax, edi
mov edi, dword [esp + 0x30]
and ebx, edi
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a0607
lea ecx, [esi + 1]
neg ecx
cmp ecx, 0x20
sbb ebp, ebp
mov esi, 1
shl esi, cl
and esi, ebp
cmp esi, ebx
jb 0x4a05fc
jne 0x4a0603
test dl, dl
je 0x4a05fc
cmp esi, ebx
jne 0x4a0603
test dl, dl
je 0x4a0603
test eax, 1
setne cl
jmp 0x4a061f
mov ecx, 1
jmp 0x4a061f
xor ecx, ecx
jmp 0x4a061f
lea ecx, [esi + 1]
neg ecx
cmp ecx, 0x20
sbb ebp, ebp
mov esi, ebx
shr ebx, cl
and ebx, ebp
cmp ebx, 1
sete cl
mov ebx, esi
test ebx, ebx
je 0x4a0625
xor edx, edx
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
xor edx, 1
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], cl
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
call fcn.004a0e20
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x50]
sub ecx, edx
inc ecx
mov dword [eax + 0x10], ecx
add esp, 0x54
ret
mov ebp, 1
mov edx, 1
jmp 0x4a05aa
mov eax, dword [esp + 0x2c]
inc eax
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
movzx edx, byte [esp + 0x1b]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x24], edi
mov edi, eax
mov eax, dword [esp + 0x30]
cmp edi, esi
jge 0x4a0665
mov dword [esp + 0x2c], edi
mov eax, 0xcccccccd
mov ebx, dword [esp + 0x24]
mul ebx
shr edx, 2
mov dword [esp + 0x4c], edx
lea esi, [edx + edx*4]
sub ebx, esi
mov eax, ebx
mov esi, 0x33333333
mul esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
mov eax, 0xcccccccd
mul ebp
shr edx, 2
mov dword [esp + 0x40], edx
lea esi, [edx + edx*4]
mov eax, ebp
sub ebp, esi
add ebx, ebp
mov ebp, eax
mov eax, 0xcccccccd
mov esi, edx
mul ebx
shr edx, 2
mov dword [esp + 0x3c], edx
add esi, 0
mov dword [esp + 0x38], esi
mov ebx, dword [esp + 0x44]
add esi, ebx
add edx, esi
mov dword [esp + 0x44], edx
mov eax, edx
mov edi, 5
mul edi
mov dword [esp + 0x34], edx
mov edi, dword [esp + 0x40]
add edi, 0
mov edi, dword [esp + 0x4c]
adc edi, 0
mov edx, dword [esp + 0x38]
add edx, ebx
mov edx, dword [esp + 0x48]
adc edi, edx
mov edx, dword [esp + 0x3c]
add edx, esi
adc edi, 0
cmp eax, ebp
setne dl
lea ebx, [edi + edi*4]
mov ebp, dword [esp + 0x34]
add ebx, ebp
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
setne bl
or ebx, edx
test bl, bl
je 0x4a0674
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x50]
movzx ebp, byte [esp + 0x1a]
movzx edx, byte [esp + 0x1b]
jmp 0x4a05aa
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e45c]
mov dword [esp + 4], eax
call fcn.00436760
mov eax, ebx
mov ecx, 0x100
call fcn.00464410
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e454]
mov dword [esp + 4], eax
call fcn.00436760
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e44c]
mov dword [esp + 4], eax
call fcn.00436760
nop
call fcn.00462f70
jmp fcn.004a0450