Function at 0x5b22f0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b2554
sub esp, 0x30
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.005877e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x5b233f
cmp dword [eax + 4], 2
jge 0x5b2339
mov edx, dword [0x913d40]
mov ebx, dword [0x913d44]
jmp 0x5b234b
xor edx, edx
xor ebx, ebx
jmp 0x5b234b
mov edx, dword [0x913d38]
mov ebx, dword [0x913d3c]
test edx, edx
jne 0x5b250b
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
nop
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004db0a0
mov eax, dword [esp + 0xc]
lea ecx, [eax + 7]
sar ecx, 0x1f
shr ecx, 0x1d
lea eax, [ecx + eax + 7]
sar eax, 3
lea ecx, [eax - 0xb]
mov edx, dword [esp + 0x44]
cmp edx, ecx
jg 0x5b24db
mov dword [esp + 0x24], eax
lea ecx, [0x6db200]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0046c5c0
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jbe 0x5b2549
mov ebx, dword [esp + 0xc]
mov byte [ebx + 1], 2
mov ebp, dword [esp + 0x44]
mov eax, ecx
sub eax, ebp
lea esi, [eax - 1]
cmp ecx, esi
jb 0x5b2540
cmp esi, 2
jb 0x5b2534
lea edx, [ecx - 2]
mov esi, edx
neg edx
sar edx, 0x1f
and edx, 2
add edx, ebx
cmp ecx, eax
jb 0x5b252f
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov dword [esp], edx
lea ecx, [eax - 3]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
call fcn.005b2560
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, eax
sub eax, ecx
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, ecx
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
add eax, esi
test ebp, ebp
jne 0x5b24b3
mov byte [ecx + esi - 1], 0
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jl 0x5b244f
mov ecx, ebx
mov ebx, dword [esp + 0x40]
cmp ebx, eax
je 0x5b246f
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004721c0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
call fcn.005b3480
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebp
add esp, 0x30
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
add esp, 0x30
ret
mov eax, dword [0x913d48]
mov ecx, dword [0x913d4c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
add esp, 0x30
ret
call fcn.00471910
mov eax, 2
mov ecx, esi
call fcn.00471910
mov edx, ecx
mov ecx, esi
call fcn.004718f0
mov eax, 1
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.005b22f0