Function at 0x5d8680
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xf0]
cmp eax, dword [ecx + 8]
jbe 0x5d8c3e
sub esp, 0x170
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x194]
lea ebx, [ecx + eax + 0x10]
mov dword [esp + 0x58], ebx
mov edx, dword [esp + 0x180]
cmp edx, ebx
jl 0x5d86d1
jb 0x5d8c36
mov ebp, dword [esp + 0x178]
jmp 0x5d870c
lea ecx, [0x6db200]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x178]
mov dword [esp + 0xc], edx
call fcn.0044cf30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x194]
mov ebx, dword [esp + 0x58]
mov edx, ebx
mov ebp, eax
mov eax, dword [esp + 0x17c]
cmp eax, ebx
ja 0x5d8c2f
mov esi, edx
sub esi, eax
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
lea esi, [ebp + eax]
cmp ecx, edi
ja 0x5d8c28
lea eax, [ecx + 0x10]
cmp ecx, eax
ja 0x5d8c1d
mov dword [esp + 0x15c], edi
mov dword [esp + 0x164], esi
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x60], edx
mov eax, edi
sub edi, ecx
mov dword [esp + 0x5c], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, ecx
add edi, esi
mov dword [esp + 0x168], edi
cmp ecx, 0xfffffff0
je 0x5d87a7
test ecx, ecx
je 0x5d87a7
mov edx, dword [esp + 0x190]
cmp edx, esi
jne 0x5d878b
mov edx, dword [esp + 0x60]
jmp 0x5d87a7
lea ebx, [ecx + edx - 1]
nop
cmp ebx, esi
jb 0x5d87a7
mov esi, dword [esp + 0x164]
lea ebp, [ecx + esi + 0xf]
cmp ebp, edx
jae 0x5d8c05
lea edi, [esp + 0x28]
xor eax, eax
call fcn.00471ac8
mov ecx, dword [esp + 0x174]
test byte [ecx], al
lea edi, [esp + 0xb4]
call fcn.00471aa6
lea ecx, [esp + 0xb4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x174]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], 0x20
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18c]
mov dword [esp + 0x18], ecx
call fcn.005d5b90
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x160], ecx
mov dword [esp], ecx
lea edx, [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x18], 0x20
call fcn.005d5e80
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x70]
shr ebx, 6
movzx ebp, byte [ecx + 0x74]
nop
mov esi, edx
sub edx, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5d8bed
cmp edx, 1
ja 0x5d8bed
cmp esi, 1
jbe 0x5d888d
lea eax, [esi - 1]
shl eax, 6
mov dword [ecx + 0x70], eax
jmp 0x5d889b
mov dword [ecx + 0x20], 1
mov dword [ecx + 0x70], 0
mov dword [esp], ecx
mov eax, dword [esp + 0x164]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x194]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x15c]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x190]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x198]
mov dword [esp + 0x18], ebx
call fcn.005d5e80
nop
lea edi, [esp + 0x64]
xor eax, eax
call fcn.00471abc
movzx eax, byte [esp + 0x28]
movzx ecx, byte [esp + 0x29]
mov edx, ecx
shl ecx, 8
or eax, ecx
shr edx, 0x18
movzx ecx, byte [esp + 0x2a]
mov ebx, ecx
shl ecx, 0x10
or eax, ecx
shr ebx, 0x10
or edx, ebx
movzx ecx, byte [esp + 0x2b]
mov ebx, ecx
shr ecx, 8
or edx, ecx
shl ebx, 0x18
or eax, ebx
and eax, 0xfffffff
movzx ecx, byte [esp + 0x2c]
or ecx, edx
movzx edx, byte [esp + 0x2d]
shl edx, 8
or ecx, edx
movzx edx, byte [esp + 0x2e]
shl edx, 0x10
or edx, ecx
movzx ecx, byte [esp + 0x2f]
shl ecx, 0x18
or ecx, edx
and ecx, 0xffffffc
nop
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
movzx eax, byte [esp + 0x30]
movzx ecx, byte [esp + 0x31]
mov edx, ecx
shl ecx, 8
or eax, ecx
shr edx, 0x18
movzx ecx, byte [esp + 0x32]
mov ebx, ecx
shl ecx, 0x10
or eax, ecx
shr ebx, 0x10
or edx, ebx
movzx ecx, byte [esp + 0x33]
mov ebx, ecx
shr ecx, 8
or ecx, edx
shl ebx, 0x18
or eax, ebx
and eax, 0xffffffc
movzx edx, byte [esp + 0x34]
or edx, ecx
movzx ecx, byte [esp + 0x35]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x36]
shl edx, 0x10
or edx, ecx
movzx ecx, byte [esp + 0x37]
shl ecx, 0x18
or ecx, edx
and ecx, 0xffffffc
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x39]
mov edx, ecx
shl ecx, 8
or eax, ecx
shr edx, 0x18
movzx ecx, byte [esp + 0x3a]
mov ebx, ecx
shl ecx, 0x10
or eax, ecx
shr ebx, 0x10
or edx, ebx
movzx ecx, byte [esp + 0x3b]
mov ebx, ecx
shr ecx, 8
or ecx, edx
shl ebx, 0x18
or eax, ebx
movzx edx, byte [esp + 0x3c]
or edx, ecx
movzx ecx, byte [esp + 0x3d]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x3e]
shl edx, 0x10
or edx, ecx
movzx ecx, byte [esp + 0x3f]
shl ecx, 0x18
or ecx, edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
movzx eax, byte [esp + 0x40]
movzx ecx, byte [esp + 0x41]
mov edx, ecx
shl ecx, 8
or eax, ecx
shr edx, 0x18
movzx ecx, byte [esp + 0x42]
mov ebx, ecx
shr ecx, 0x10
or ecx, edx
shl ebx, 0x10
or ebx, eax
movzx eax, byte [esp + 0x43]
mov edx, eax
shr eax, 8
or ecx, eax
shl edx, 0x18
or ebx, edx
movzx eax, byte [esp + 0x44]
or eax, ecx
movzx ecx, byte [esp + 0x45]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x46]
shl eax, 0x10
or eax, ecx
movzx ecx, byte [esp + 0x47]
shl ecx, 0x18
or ecx, eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ecx
lea eax, [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x19c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0xc], edx
call fcn.005d84d0
lea eax, [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x164]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x194]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x15c]
mov dword [esp + 0xc], edx
call fcn.005d84d0
lea eax, [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 4], ecx
call fcn.005d85c0
lea eax, [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
call fcn.005d85c0
nop
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea eax, [esp + 0x64]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.005d7330
mov byte [esp + 0xb0], 1
mov eax, dword [esp + 0x5c]
cmp eax, 0x10
jb 0x5d8b79
mov edi, dword [esp + 0x168]
jmp 0x5d8baa
mov ecx, dword [esp + 0x168]
mov dword [esp], ecx
mov dword [esp + 4], 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x10
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov edi, dword [esp + 0x14]
mov dword [esp], edi
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
call fcn.004721c0
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1b0], eax
add esp, 0x170
ret
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a720]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a718]
mov dword [esp + 4], eax
call fcn.0046a9e0
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.00471910
mov edx, edi
call fcn.004718f0
mov ecx, ebx
call fcn.00471910
mov ecx, ebx
call fcn.004718f0
nop
call fcn.00470430
jmp fcn.005d8680