Function at 0x1005c180
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x554
mov eax, dword [0x1008e168]
xor eax, esp
mov dword [esp + 0x550], eax
mov eax, dword [esp + 0x564]
push ebx
mov ebx, dword [esp + 0x55c]
push ebp
mov ebp, dword [esp + 0x568]
push esi
push edi
mov edi, dword [esp + 0x56c]
push 0x400004
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push 0x10002b40
push eax
mov eax, dword [0x10092868]
push edi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x30], 0
mov eax, dword [eax + 0x60]
push ebx
mov dword [esp + 0x2c], Ordinal_4
call eax
mov esi, eax
test esi, esi
jns 0x1005c23f
mov ecx, dword [0x10092868]
push ebx
mov ecx, dword [ecx + 0x108]
call ecx
mov eax, dword [0x10092868]
push 0
push 0
push 0
mov eax, dword [eax + 0x104]
push 0xffffddef
push 0
push 0
push 0x10002b40
push ebx
call eax
mov dword [esp + 0x1c], 0xffffffff
jmp 0x1005c578
push 0x12
push 4
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x10092868]
push edi
push ebx
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
test esi, esi
js 0x1005c563
mov edx, dword [esp + 0x28]
lea edi, [esp + 0x80]
mov ecx, 0x24
lea eax, [esp + 0x8c]
mov esi, 0x100062e0
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov dword [eax], edx
lea eax, [eax + 0x18]
dec ecx
jne 0x1005c281
lea edi, [ebp + 0xc]
push edi
lea eax, [esp + 0x14]
push eax
push 0xd
push 6
lea eax, [esp + 0x90]
push eax
mov eax, dword [0x10092868]
push ebx
mov eax, dword [eax + 0xe0]
call eax
mov esi, eax
test esi, esi
js 0x1005c563
lea ecx, [esp + 0x160]
mov esi, 0x10005a50
mov eax, ecx
mov edx, 0x200
sub esi, eax
jmp 0x1005c2d0
lea eax, [edx + 0x7ffffdfe]
test eax, eax
je 0x1005c2ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x1005c2ee
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x1005c2d0
jmp 0x1005c2f2
test edx, edx
jne 0x1005c2f5
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov eax, dword [esp + 0x578]
add eax, 0xffffffb8
cmp eax, 0xc
ja case.0x1005c30d.76
jmp dword [eax*4 + 0x1005c5e4]
push 0x10005bc0
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005c00
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005c40
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005c64
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005ca4
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005ce4
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005d18
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005e00
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005ee8
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
push 0x10005f50
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
jmp case.0x1005c30d.76
mov dword [esp + 0x18], 0x19
jmp case.0x1005c30d.76
mov dword [esp + 0x18], 0x32
cmp dword [esp + 0x24], 0
je 0x1005c4a3
lea ecx, [esp + 0x160]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005c440
sub ecx, edx
lea eax, [esp + 0x110]
push 0x27
sar ecx, 1
lea esi, [esp + 0x164]
push eax
push dword [esp + 0x2c]
lea esi, [esi + ecx*2]
call fcn.100520f0
mov ecx, esi
lea eax, [esp + 0x160]
sub ecx, eax
sar ecx, 1
cmp ecx, 0x200
jae 0x1005c5a8
lea eax, [esp + 0x110]
push eax
mov eax, 0x200
push 0x10005b7c
sub eax, ecx
push eax
push esi
call fcn.1001f4f0
add esp, 0x10
push 0x10005fa8
push 0x200
lea eax, [esp + 0x168]
push eax
call fcn.10013a00
lea eax, [esp + 0x14]
push eax
push 0
push 0x2024
push 0
push 0
lea eax, [esp + 0x174]
push eax
mov eax, dword [0x10092868]
push dword [esp + 0x584]
push ebx
mov eax, dword [eax + 0x12c]
call eax
mov esi, eax
test esi, esi
js 0x1005c563
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.1005cb80
mov esi, eax
test esi, esi
js 0x1005c563
lea ecx, [esp + 0x50]
lea edx, [esp + 0x38]
mov edi, edi
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea edi, [edi + 4]
mov eax, dword [edi - 4]
mov dword [ecx + 4], eax
add ecx, 8
lea eax, [esp + 0x80]
cmp ecx, eax
jb 0x1005c510
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x5c]
push 6
push eax
push dword [esp + 0x24]
mov eax, dword [0x10092868]
push dword [esp + 0x2c]
push ebx
mov eax, dword [eax + 0xa8]
call eax
mov esi, eax
xor eax, eax
cmp esi, 0xfffff9bd
cmove esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x1005c578
push eax
mov eax, dword [0x10092868]
push ebx
mov eax, dword [eax + 0x68]
call eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x1005c58d
push eax
mov eax, dword [0x10092868]
push ebx
mov eax, dword [eax + 0x68]
call eax
test esi, esi
jns 0x1005c5af
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x1005c5c4
push eax
mov eax, dword [0x10092868]
push ebx
mov eax, dword [eax + 0x68]
call eax
jmp 0x1005c5c4
mov esi, 0xfffffbf2
jmp 0x1005c563
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [ebp], 0x24
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x560]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007d8c1
add esp, 0x554
ret 0x14