Function at 0x412230
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4124c5
sub esp, 0x28
mov edx, dword [esp + 0x2c]
test byte [edx], al
movzx ebx, byte [esp + 0x30]
movzx eax, bl
cmp eax, 0x88
jae 0x4124ba
mov ecx, dword [edx + eax*4 + 0x14]
movzx ebp, word [ecx + 0x38]
cmp dword [ecx + 0x1c], ebp
jne 0x4124a4
mov dword [esp + 0x18], eax
lea ebp, [0x7e8520]
cmp ecx, ebp
je 0x4122ae
mov ebp, dword [0x7c82cc]
add ebp, 3
cmp dword [ecx + 0x30], ebp
jne 0x41248e
shl eax, 7
lea ebx, [0x7c837c]
add eax, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00412db0
mov eax, dword [esp + 0x18]
shl eax, 7
lea edx, [0x7c837c]
add eax, edx
mov dword [esp], eax
call fcn.00412a60
mov eax, dword [esp + 4]
test eax, eax
je 0x412478
movzx ecx, word [eax + 0x38]
cmp dword [eax + 0x1c], ecx
je 0x412462
mov dword [esp + 0x14], eax
mov ecx, dword [0x7c82cc]
add ecx, 3
mov dword [eax + 0x30], ecx
lea ecx, [0x7eb350]
mov dword [esp], ecx
call fcn.0042b470
mov eax, dword [esp + 4]
test byte [eax], al
movzx ecx, byte [esp + 0x30]
shr cl, 1
movsx ecx, cl
cmp ecx, 0x44
jae 0x412456
mov dword [esp + 0x24], eax
lea ecx, [eax + ecx*4 + 0x3c]
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x1c]
movzx ebp, word [edx + 0x38]
mov dword [esp], ecx
sub ebx, ebp
mov dword [esp + 4], ebx
call fcn.00401ee0
movzx eax, byte [esp + 0x30]
cmp al, 5
jne 0x412361
mov eax, dword [esp + 0x24]
add eax, 0x30
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x10]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00401ee0
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x10], 0
lea eax, [0x7eb350]
mov dword [esp], eax
call fcn.0042b590
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0x38]
imul ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x10]
shl edx, 0xd
sub edx, ecx
lea ecx, [0x7e89f0]
mov dword [esp], ecx
mov ecx, 0
sbb ecx, 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.00401f80
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea edx, [0x7e89f8]
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
call fcn.00401f80
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], 0
movzx ecx, byte [0x7cc868]
test cl, cl
je 0x41242a
nop
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [0x7e89f0]
mov ecx, dword [0x7e89f4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp], 0x21
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0044ce00
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x7e8238]
test ecx, ecx
je 0x412446
lea eax, [0x7e89c0]
mov dword [esp], eax
call fcn.0041bc50
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0x14], edx
add esp, 0x28
ret
mov eax, ecx
mov ecx, 0x44
call fcn.0045a030
lea eax, [0x4eab3f]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call fcn.00432150
lea eax, [0x4e813b]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00432150
lea eax, [0x4ea903]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call fcn.00432150
lea eax, [0x4ef336]
mov dword [esp], eax
mov dword [esp + 4], 0x28
call fcn.00432150
mov ecx, 0x88
call fcn.0045a030
nop
call fcn.00458b70
jmp fcn.00412230