Function at 0x5d3cd8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x358], ebx
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x354], ebx
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, edx
lea edi, [ebp - 0x310]
push ecx
mov ecx, 0xbe
rep movsd dword es:[edi], dword [esi]
pop ecx
mov edi, ecx
mov esi, eax
xor eax, eax
push ebp
push 0x5d4087
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [esi + 0x4d4]
sub eax, 0xb
je 0x5d3d5f
sub eax, 0xe
je 0x5d3d5f
sub eax, 2
je 0x5d3d5f
sub eax, 7
jne 0x5d4039
imul eax, dword [ebp + 8], 0x3c
cmp byte [edi + eax*8 + 0x70], 0
je 0x5d3d7c
lea eax, [ebp - 4]
imul edx, dword [ebp + 8], 0x3c
lea edx, [edi + edx*8 + 0x70]
call fcn.004042d4
jmp 0x5d3d8a
lea eax, [ebp - 4]
mov edx, dword [esi + 0x514]
call fcn.00404148
cmp byte [ebp - 0x246], 0
je 0x5d4039
cmp dword [ebp - 4], 0
je 0x5d4039
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x246]
mov dword [ebp - 0x328], eax
mov byte [ebp - 0x324], 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x320], eax
mov byte [ebp - 0x31c], 0xb
lea edx, [ebp - 0x328]
mov ecx, 1
mov eax, 0x5d40a4
call fcn.0040bdbc
mov edx, dword [ebp - 0x318]
lea eax, [ebp - 0x314]
call fcn.004048f4
mov eax, dword [ebp - 0x314]
mov edx, dword [esi + 0x400]
call fcn.007aa7e8
test al, al
je 0x5d4039
mov eax, dword [esi + 0x4d4]
mov edx, eax
sub edx, 0x1b
je 0x5d3e20
sub edx, 7
jne 0x5d3f2a
lea eax, [ebp - 8]
mov edx, 0x5d41f8
call fcn.00404148
mov edx, 0x5d4264
mov eax, dword [esi + 0x400]
call fcn.004ac0f0
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x10]
wait
mov edx, 0x5d4274
mov eax, dword [esi + 0x400]
call fcn.004ac0f0
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x10]
fcomp dword [0x5d4278]
fnstsw ax
sahf
jbe 0x5d4039
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jae 0x5d4039
mov ax, word [0x5d427c]
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x310]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 0x348], 4
lea eax, [ebp - 0x2ab]
mov dword [ebp - 0x344], eax
mov byte [ebp - 0x340], 4
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x350]
call fcn.007b7e7c
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x33c], eax
mov byte [ebp - 0x338], 0xb
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x354]
call fcn.007b7e7c
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x334], eax
mov byte [ebp - 0x330], 0xb
lea edx, [ebp - 0x34c]
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.0040bdbc
mov eax, dword [ebp - 0x32c]
mov cl, 3
xor edx, edx
call fcn.005179e4
dec eax
jne 0x5d403b
jmp 0x5d4039
sub eax, 0xb
je 0x5d3f38
sub eax, 0xe
jne 0x5d4039
lea eax, [ebp - 8]
mov edx, 0x5d4288
call fcn.00404148
mov edx, 0x5d42f4
mov eax, dword [esi + 0x400]
call fcn.004ac0f0
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x10]
wait
mov edx, 0x5d4274
mov eax, dword [esi + 0x400]
call fcn.004ac0f0
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x10]
fcomp dword [0x5d4278]
fnstsw ax
sahf
jbe 0x5d4039
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jbe 0x5d4039
mov ax, word [0x5d427c]
push eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x310]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 0x348], 4
lea eax, [ebp - 0x2ab]
mov dword [ebp - 0x344], eax
mov byte [ebp - 0x340], 4
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x35c]
call fcn.007b7e7c
mov eax, dword [ebp - 0x35c]
mov dword [ebp - 0x33c], eax
mov byte [ebp - 0x338], 0xb
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x360]
call fcn.007b7e7c
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x334], eax
mov byte [ebp - 0x330], 0xb
lea edx, [ebp - 0x34c]
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.0040bdbc
mov eax, dword [ebp - 0x358]
mov cl, 3
xor edx, edx
call fcn.005179e4
dec eax
jne 0x5d403b
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d408e
lea eax, [ebp - 0x360]
mov edx, 5
call fcn.004040d4
lea eax, [ebp - 0x32c]
call fcn.004040b0
lea eax, [ebp - 0x318]
call fcn.004040b0
lea eax, [ebp - 0x314]
call fcn.00404774
lea eax, [ebp - 8]
mov edx, 2
call fcn.004040d4
ret