Function at 0x52a904
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x52a90c
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x52af11
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
mov dword [ebp - 0x14], ebx
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x52af28
call fcn.0040a820
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x52af34
call fcn.004048e4
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00421758
xor edx, edx
call fcn.004461f8
push 0x52af44
mov dword [ebp - 0x14], ebx
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x1c]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x1c]
push 0x52af54
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00421758
xor edx, edx
call fcn.004460e8
push 0x52af44
mov dword [ebp - 0x14], ebx
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x24]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x24]
push 0x52af60
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.00421758
xor edx, edx
call fcn.004460e8
push 0x52af44
mov dword [ebp - 0x14], ebx
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x2c]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x2c]
push 0x52af6c
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00421758
xor edx, edx
call fcn.004460e8
inc ebx
cmp ebx, 0x29
jne 0x52a92b
mov eax, dword [esi + 0x320]
call fcn.00490bc0
lea edx, [ebp - 0x34]
call fcn.004090a4
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x52af78
call fcn.004048e4
mov edx, dword [ebp - 0x30]
mov eax, dword [0x56070c]
mov eax, dword [eax]
call fcn.00421758
call fcn.00457e00
mov edi, eax
dec edi
test edi, edi
jl 0x52ac29
inc edi
xor ebx, ebx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x3c]
mov eax, 0x52af28
call fcn.0040a820
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x52af34
call fcn.004048e4
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.00421758
push eax
mov eax, dword [esi + 0x320]
call fcn.00490bc0
lea edx, [ebp - 0x44]
call fcn.004090a4
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x52af78
call fcn.004048e4
mov edx, dword [ebp - 0x40]
mov eax, dword [0x56070c]
mov eax, dword [eax]
call fcn.00421758
mov edx, ebx
call fcn.00457e10
mov edx, dword [eax + 0x30]
pop eax
call fcn.004461f8
push 0x52af44
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x4c]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x4c]
push 0x52af54
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x48]
mov eax, esi
call fcn.00421758
mov dl, 1
call fcn.004460e8
push 0x52af44
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x54]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x54]
push 0x52af60
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x50]
mov eax, esi
call fcn.00421758
mov dl, 1
call fcn.004460e8
push 0x52af44
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x5c]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x5c]
push 0x52af6c
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x58]
mov eax, esi
call fcn.00421758
mov dl, 1
call fcn.004460e8
push 0x52af44
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x64]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x64]
push 0x52af54
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x60]
mov eax, esi
call fcn.00421758
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xc8]
inc ebx
dec edi
jne 0x52aa84
lea eax, [ebp - 4]
mov edx, 0x52af8c
call fcn.00404678
mov eax, dword [0x560a18]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00480ef0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x248]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x68]
push eax
mov ebx, dword [esi + 0x648]
mov ecx, dword [ebx + 0x22c]
mov edx, 2
mov eax, ebx
call fcn.004bc6bc
mov eax, dword [ebp - 0x68]
push eax
mov edx, 0x52afc4
mov eax, dword [ebp - 8]
call fcn.004b22f8
pop edx
call fcn.004802fc
mov eax, dword [ebp - 8]
call fcn.00480ee4
jmp 0x52aeb9
mov eax, dword [esi + 0x320]
call fcn.00490bc0
lea edx, [ebp - 0x70]
call fcn.004090a4
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x52af78
call fcn.004048e4
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x56070c]
mov eax, dword [eax]
call fcn.00421758
call fcn.00457e00
mov edi, eax
dec edi
test edi, edi
jl 0x52aeb1
inc edi
xor ebx, ebx
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi + 0x320]
call fcn.00490bc0
lea edx, [ebp - 0x7c]
call fcn.004090a4
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x52af78
call fcn.004048e4
mov edx, dword [ebp - 0x78]
mov eax, dword [0x56070c]
mov eax, dword [eax]
call fcn.00421758
mov edx, ebx
call fcn.00457e10
mov eax, dword [eax + 8]
call fcn.00404898
sub eax, 2
push eax
mov eax, dword [esi + 0x320]
call fcn.00490bc0
lea edx, [ebp - 0x84]
call fcn.004090a4
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x52af78
call fcn.004048e4
mov edx, dword [ebp - 0x80]
mov eax, dword [0x56070c]
mov eax, dword [eax]
call fcn.00421758
mov edx, ebx
call fcn.00457e10
mov eax, dword [eax + 8]
mov edx, 3
pop ecx
call fcn.00404af0
mov eax, dword [ebp - 0x74]
push eax
mov edx, 0x52afd0
mov eax, dword [ebp - 8]
call fcn.00481ef8
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x88]
pop eax
call fcn.004049dc
jne 0x52aea9
mov edx, 0x52afe0
mov eax, dword [ebp - 8]
call fcn.00481ef8
lea edx, [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x8c]
mov edx, 0x52af54
call fcn.004049dc
jne 0x52ae26
push 0x52af44
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x94]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0x94]
push 0x52af60
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x90]
mov eax, esi
call fcn.00421758
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, 0x52afe0
mov eax, dword [ebp - 8]
call fcn.00481ef8
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x98]
mov edx, 0x52af60
call fcn.004049dc
jne 0x52aeb1
push 0x52af44
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xa0]
mov eax, 0x52af28
call fcn.0040a820
push dword [ebp - 0xa0]
push 0x52af6c
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.00404958
mov edx, dword [ebp - 0x9c]
mov eax, esi
call fcn.00421758
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xc8]
jmp 0x52aeb1
inc ebx
dec edi
jne 0x52ace1
mov eax, dword [ebp - 8]
call fcn.00483598
mov eax, dword [ebp - 8]
cmp byte [eax + 0xa1], 0
je 0x52ac9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52af18
lea eax, [ebp - 0xa0]
mov edx, 0xb
call fcn.00404604
lea eax, [ebp - 0x74]
call fcn.004045e0
lea eax, [ebp - 0x70]
mov edx, 0x17
call fcn.00404604
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404604
lea eax, [ebp - 4]
call fcn.004045e0
ret