Function at 0x50853c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x508544
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x50883e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x508854
call fcn.0040479c
mov eax, dword [0x516dac]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
mov eax, esi
call fcn.004ae954
mov eax, esi
call fcn.004c6240
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
call fcn.004c4674
mov edx, 0x5088c0
call fcn.004bc77c
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x714]
call fcn.0040578c
lea edx, [ebp - 0x14]
pop eax
call fcn.004bda24
mov eax, esi
call fcn.004ae948
mov edx, 0x5088d8
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x3d0]
call fcn.00440bbc
mov edx, 0x5088e8
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x1c]
mov eax, 0x5088f4
call fcn.0040aa7c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x3c8]
call fcn.00440bbc
lea eax, [ebp - 4]
mov edx, 0x508904
call fcn.0040479c
mov eax, dword [0x516dac]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
mov eax, esi
call fcn.004ae954
mov eax, esi
call fcn.004c6240
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
call fcn.004c4674
mov edx, 0x5088c0
call fcn.004bc77c
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x714]
call fcn.0040578c
lea edx, [ebp - 0x2c]
pop eax
call fcn.004bda24
mov eax, esi
call fcn.004ae948
mov edx, 0x5088d8
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x3d4]
call fcn.00440bbc
mov edx, 0x5088e8
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x5088f4
call fcn.0040aa7c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x3cc]
call fcn.00440bbc
mov eax, dword [ebx + 0x704]
mov edx, 0x508974
call fcn.00404b00
je 0x5086e9
mov eax, dword [ebx + 0x704]
mov edx, 0x508980
call fcn.00404b00
jne 0x5087cf
lea eax, [ebp - 4]
mov edx, 0x50898c
call fcn.0040479c
mov eax, dword [0x516dac]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
mov eax, esi
call fcn.004ae954
mov eax, esi
call fcn.004c6240
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
call fcn.004c4674
mov edx, 0x5088c0
call fcn.004bc77c
push eax
lea eax, [ebp - 0x44]
mov edx, dword [ebx + 0x714]
call fcn.0040578c
lea edx, [ebp - 0x44]
pop eax
call fcn.004bda24
lea edx, [ebp - 0x58]
mov eax, dword [ebx + 0x358]
call fcn.00440b8c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.0040578c
lea eax, [ebp - 0x54]
push eax
mov eax, esi
call fcn.004c4674
mov edx, 0x508a08
call fcn.004bc77c
pop edx
call fcn.004bda24
mov eax, esi
call fcn.004ae948
mov edx, 0x5088d8
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x3d8]
call fcn.00440bbc
mov edx, 0x5088e8
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x60]
mov eax, 0x5088f4
call fcn.0040aa7c
mov edx, dword [ebp - 0x60]
mov eax, dword [ebx + 0x3c4]
call fcn.00440bbc
mov eax, ebx
call fcn.00508a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508845
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00404728
lea eax, [ebp - 0x58]
call fcn.00404704
lea eax, [ebp - 0x54]
mov edx, dword [0x40113c]
mov ecx, 2
call fcn.004052f8
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404728
lea eax, [ebp - 0x2c]
call fcn.00405800
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404728
lea eax, [ebp - 0x14]
call fcn.00405800
lea eax, [ebp - 4]
call fcn.00404704
ret