Function at 0x5b0f20
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xa18]
cmp eax, dword [ecx + 8]
jbe 0x5b145c
sub esp, 0xa98
mov ecx, dword [esp + 0xaa4]
mov dword [esp + 0xa94], ecx
xor eax, eax
jmp 0x5b0f5f
mov ecx, dword [esp + 0xaa4]
mov eax, 1
test eax, eax
jg 0x5b1003
mov ecx, dword [esp + 0xa94]
mov dword [esp + 0xa8c], ecx
lea edi, [esp + 0xa64]
xor eax, eax
call fcn.00471ac6
mov ecx, dword [esp + 0xa8c]
test byte [ecx], al
mov dword [esp], ecx
lea edx, [esp + 0xa64]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x28
call fcn.00402d90
movzx ecx, byte [esp + 0xc]
test cl, cl
je 0x5b0f53
mov ecx, dword [esp + 0xa8c]
add ecx, 0x28
mov dword [esp + 0xa90], ecx
lea edi, [esp + 0xa3c]
xor eax, eax
call fcn.00471ac6
mov ecx, dword [esp + 0xa90]
mov dword [esp], ecx
lea ecx, [esp + 0xa3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x28
call fcn.00402d90
movzx ecx, byte [esp + 0xc]
test cl, cl
je 0x5b0f53
jmp 0x5b1443
nop
lea eax, [0x943240]
mov dword [esp], eax
lea eax, [0x738a84]
mov dword [esp + 4], eax
call fcn.00486d50
lea edi, [esp + 0x30c]
mov ecx, 0x140
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30c]
mov dword [esp], ecx
mov ecx, dword [esp + 0xaa4]
mov dword [esp + 4], ecx
call fcn.005b1470
mov eax, dword [esp + 0xaa0]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.005aafc0
lea edi, [esp + 0x208]
lea esi, [esp + 8]
call fcn.00471d60
mov eax, dword [esp + 0xaa8]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.005aafc0
lea edi, [esp + 0x108]
lea esi, [esp + 8]
call fcn.00471d60
mov eax, 0xff
jmp 0x5b109c
dec eax
test eax, eax
jl 0x5b10c3
cmp eax, 0x100
jae 0x5b1439
movzx edx, byte [esp + eax + 0x208]
test dl, dl
jne 0x5b10c3
movzx edx, byte [esp + eax + 0x108]
test dl, dl
je 0x5b109b
lea edi, [esp + 0x99c]
xor eax, eax
call fcn.00471aa8
lea edi, [esp + 0x924]
call fcn.00471ab2
lea edi, [esp + 0x884]
call fcn.00471aa8
lea edi, [esp + 0x80c]
call fcn.00471ab2
mov esi, dword [0x91353c]
nop
lea edi, [esp + 0x80c]
call fcn.00471f7c
mov esi, dword [0x913540]
nop
lea edi, [esp + 0x834]
call fcn.00471f7c
mov esi, dword [0x913540]
nop
lea edi, [esp + 0x85c]
call fcn.00471f7c
mov eax, 0xff
jmp 0x5b1157
lea eax, [esp + 0x80c]
mov dword [esp], eax
lea ecx, [esp + 0x884]
mov dword [esp + 4], ecx
call fcn.005a9a50
mov eax, dword [esp + 0x308]
dec eax
test eax, eax
jl 0x5b13d0
mov dword [esp + 0x308], eax
lea eax, [esp + 0x884]
mov dword [esp], eax
lea ecx, [esp + 0x80c]
mov dword [esp + 4], ecx
call fcn.005aa8d0
mov eax, dword [esp + 0x308]
cmp eax, 0x100
jae 0x5b142f
movzx ecx, byte [esp + eax + 0x208]
test cl, cl
jg 0x5b1232
jge 0x5b12b5
mov eax, dword [esp + 0xa9c]
mov dword [esp], eax
lea ecx, [esp + 0x884]
mov dword [esp + 4], ecx
call fcn.005a9b00
mov eax, dword [esp + 0x308]
movzx ecx, byte [esp + eax + 0x208]
mov edx, ecx
neg ecx
shr cl, 7
sub ecx, edx
sar cl, 1
movsx ecx, cl
cmp ecx, 8
jae 0x5b1423
lea eax, [ecx + ecx*4]
shl eax, 5
lea esi, [esp + eax + 0x30c]
lea edi, [esp + 0x99c]
call fcn.00471e50
lea eax, [esp + 0x884]
mov dword [esp], eax
mov ecx, dword [esp + 0xa9c]
mov dword [esp + 4], ecx
lea edx, [esp + 0x99c]
mov dword [esp + 8], edx
call fcn.005aa250
mov eax, dword [esp + 0x308]
jmp 0x5b12b5
mov eax, dword [esp + 0xa9c]
mov dword [esp], eax
lea ecx, [esp + 0x884]
mov dword [esp + 4], ecx
call fcn.005a9b00
mov eax, dword [esp + 0x308]
movzx ecx, byte [esp + eax + 0x208]
mov edx, ecx
shr cl, 7
add ecx, edx
sar cl, 1
movsx ecx, cl
cmp ecx, 8
jae 0x5b1417
lea eax, [ecx + ecx*4]
shl eax, 5
lea esi, [esp + eax + 0x30c]
lea edi, [esp + 0x99c]
call fcn.00471e50
lea eax, [esp + 0x884]
mov dword [esp], eax
mov ecx, dword [esp + 0xa9c]
mov dword [esp + 4], ecx
lea edx, [esp + 0x99c]
mov dword [esp + 8], edx
call fcn.005aa000
mov eax, dword [esp + 0x308]
movzx ecx, byte [esp + eax + 0x108]
test cl, cl
jg 0x5b1354
jge 0x5b1135
mov eax, dword [esp + 0xa9c]
mov dword [esp], eax
lea ecx, [esp + 0x884]
mov dword [esp + 4], ecx
call fcn.005a9b00
mov eax, dword [esp + 0x308]
movzx ecx, byte [esp + eax + 0x108]
mov edx, ecx
neg ecx
shr cl, 7
sub ecx, edx
sar cl, 1
movsx ecx, cl
cmp ecx, 0x40
jae 0x5b140b
imul eax, ecx, 0x78
lea ecx, [0x941440]
lea esi, [eax + ecx]
lea edi, [esp + 0x924]
call fcn.00471eb4
lea eax, [esp + 0x884]
mov dword [esp], eax
mov ecx, dword [esp + 0xa9c]
mov dword [esp + 4], ecx
lea edx, [esp + 0x924]
mov dword [esp + 8], edx
call fcn.005aa6b0
mov eax, dword [esp + 0x308]
jmp 0x5b1135
mov eax, dword [esp + 0xa9c]
mov dword [esp], eax
lea ecx, [esp + 0x884]
mov dword [esp + 4], ecx
call fcn.005a9b00
mov eax, dword [esp + 0x308]
movzx ecx, byte [esp + eax + 0x108]
mov edx, ecx
shr cl, 7
add ecx, edx
sar cl, 1
movsx ecx, cl
cmp ecx, 0x40
jae 0x5b13ff
imul eax, ecx, 0x78
lea ecx, [0x941440]
lea esi, [eax + ecx]
lea edi, [esp + 0x924]
call fcn.00471eb4
lea eax, [esp + 0x884]
mov dword [esp], eax
mov ecx, dword [esp + 0xa9c]
mov dword [esp + 4], ecx
lea edx, [esp + 0x924]
mov dword [esp + 8], edx
call fcn.005aa490
jmp 0x5b1135
mov eax, dword [esp + 0xa9c]
mov dword [esp], eax
lea ecx, [esp + 0x80c]
mov dword [esp + 4], ecx
call fcn.005a9bd0
mov eax, dword [esp + 0xa9c]
mov dword [esp + 0xaac], eax
add esp, 0xa98
ret
mov eax, ecx
mov ecx, 0x40
call fcn.004718b0
mov eax, ecx
mov ecx, 0x40
call fcn.004718b0
mov eax, ecx
mov ecx, 8
call fcn.004718b0
mov eax, ecx
mov ecx, 8
call fcn.004718b0
mov ecx, 0x100
call fcn.004718b0
mov ecx, 0x100
call fcn.004718b0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a838]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.005b0f20