Function at 0x536410
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x536418
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x536aea
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x57ace0]
push 0x536b00
mov eax, dword [0x578308]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404b70
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x304]
call fcn.00469d18
mov eax, dword [0x578308]
mov eax, dword [eax + 4]
call fcn.00404ab0
cmp eax, 0x20
jle 0x536487
mov eax, dword [esi + 0x304]
mov eax, dword [eax + 0x68]
mov edx, 0xa
call fcn.0042b8d4
jmp 0x53649a
mov eax, dword [esi + 0x304]
mov eax, dword [eax + 0x68]
mov edx, 0x10
call fcn.0042b8d4
mov ebx, 1
mov eax, dword [0x5782ec]
mov eax, dword [eax]
mov edx, 0x536b0c
call fcn.00404bfc
jne 0x536811
mov eax, dword [0x578964]
mov eax, dword [eax]
mov dx, 0xffef
call fcn.00487c2c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b04f4]
call fcn.004bcf8c
mov edi, eax
mov eax, edi
call fcn.004bd110
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x578948]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x26c]
mov eax, edi
call fcn.004bd110
mov edx, 0x536b24
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, edi
call fcn.004bb454
mov edx, 0x536b64
call fcn.004b35d8
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x578308]
mov edx, dword [edx]
mov cl, 0xfc
call fcn.0041613c
lea edx, [ebp - 0x2c]
pop eax
call fcn.004b485c
mov eax, edi
call fcn.004a50c4
mov eax, edi
call fcn.004a75f4
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x5367e8
push 0x30
mov eax, dword [0x5788f0]
push dword [eax]
push 0x536b70
mov eax, dword [0x5782ac]
push dword [eax]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404b70
mov eax, dword [ebp - 0x30]
call fcn.00404cb0
mov edx, eax
mov ecx, 0x536b74
mov eax, dword [0x5785d0]
mov eax, dword [eax]
call fcn.00489e1c
jmp 0x5367e8
mov edx, 0x536b84
mov eax, edi
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x58]
cmp eax, 8
jne 0x5365bb
lea eax, [ebp - 0x18]
mov edx, 0x536b98
call fcn.00404888
jmp 0x5365d9
cmp eax, 0x80
jne 0x5365d1
lea eax, [ebp - 0x18]
mov edx, 0x536ba4
call fcn.00404888
jmp 0x5365d9
lea eax, [ebp - 0x18]
call fcn.004047f0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, ebx
xor edx, edx
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536bb0
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, ebx
mov edx, 1
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536bc0
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, ebx
mov edx, 2
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536bd0
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, ebx
mov edx, 3
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536be0
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x40]
push eax
mov ecx, ebx
mov edx, 4
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536bf0
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, ebx
mov edx, 5
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536c08
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, ebx
mov edx, 6
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536c20
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, ebx
mov edx, 7
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536c30
mov eax, edi
call fcn.004a61cc
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, ebx
mov edx, 8
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov edx, 0x536c44
mov eax, edi
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 8], eax
mov edx, 0x536bb0
mov eax, edi
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0xc], eax
mov edx, 0x536c54
mov eax, edi
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x10], eax
mov edx, 0x536c54
mov eax, edi
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x74]
mov ecx, 3
mov eax, 0x536c64
call fcn.0040a928
mov eax, dword [ebp - 0x54]
push eax
mov ecx, ebx
mov edx, 9
mov eax, dword [esi + 0x308]
call fcn.004f6b78
inc ebx
mov eax, edi
call fcn.004a790c
cmp byte [edi + 0xa1], 0
je 0x536596
mov dl, 1
mov eax, edi
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [0x578964]
mov eax, dword [eax]
xor edx, edx
call fcn.00487c2c
jmp 0x536a58
lea edx, [ebp - 0x78]
mov eax, dword [0x578308]
mov eax, dword [eax]
call fcn.00409a38
mov edx, dword [ebp - 0x78]
mov eax, 3
call fcn.005696a8
mov edx, dword [0x578064]
mov dword [edx], eax
mov eax, dword [0x578064]
mov eax, dword [eax]
mov edx, dword [0x578908]
mov dword [edx], eax
mov ecx, dword [0x57877c]
mov ecx, dword [ecx]
dec ecx
mov eax, dword [0x578908]
mov eax, dword [eax]
xor edx, edx
call fcn.00432d68
test al, al
je 0x536a58
jmp 0x536a26
mov eax, dword [0x578908]
imul eax, dword [eax], 0xd
mov edx, dword [0x578264]
mov edx, dword [edx]
lea edi, [edx + eax*8]
mov eax, dword [edi + 0x34]
cmp eax, 8
jne 0x536892
lea eax, [ebp - 0x18]
mov edx, 0x536b98
call fcn.00404888
jmp 0x5368b0
cmp eax, 0x80
jne 0x5368a8
lea eax, [ebp - 0x18]
mov edx, 0x536ba4
call fcn.00404888
jmp 0x5368b0
lea eax, [ebp - 0x18]
call fcn.004047f0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, ebx
xor edx, edx
mov eax, dword [esi + 0x308]
call fcn.004f6b78
lea edx, [ebp - 0x7c]
mov eax, dword [edi + 4]
call fcn.00409a38
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, ebx
mov edx, 1
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov eax, dword [edi + 0x10]
push eax
mov ecx, ebx
mov edx, 2
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov eax, dword [edi + 0x14]
push eax
mov ecx, ebx
mov edx, 3
mov eax, dword [esi + 0x308]
call fcn.004f6b78
push dword [edi + 0x24]
push dword [edi + 0x20]
lea eax, [ebp - 0x80]
call fcn.0040b8b4
mov eax, dword [ebp - 0x80]
push eax
mov ecx, ebx
mov edx, 4
mov eax, dword [esi + 0x308]
call fcn.004f6b78
push dword [edi + 0x54]
push dword [edi + 0x50]
lea eax, [ebp - 0x84]
call fcn.0040b8b4
mov eax, dword [ebp - 0x84]
push eax
mov ecx, ebx
mov edx, 5
mov eax, dword [esi + 0x308]
call fcn.004f6b78
push dword [edi + 0x5c]
push dword [edi + 0x58]
lea eax, [ebp - 0x88]
call fcn.0040b8b4
mov eax, dword [ebp - 0x88]
push eax
mov ecx, ebx
mov edx, 6
mov eax, dword [esi + 0x308]
call fcn.004f6b78
mov eax, dword [edi + 0x18]
push eax
mov ecx, ebx
mov edx, 7
mov eax, dword [esi + 0x308]
call fcn.004f6b78
lea edx, [ebp - 0x8c]
mov eax, dword [edi + 0x30]
call fcn.00409a38
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, ebx
mov edx, 8
mov eax, dword [esi + 0x308]
call fcn.004f6b78
lea eax, [ebp - 0x90]
push eax
mov eax, 0x536c64
mov edx, dword [edi]
mov dword [ebp - 0x74], edx
mov byte [ebp - 0x70], 0
mov edx, dword [edi + 4]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 0x68], 0
mov edx, dword [edi + 8]
mov dword [ebp - 0x64], edx
mov byte [ebp - 0x60], 0
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x74]
mov ecx, 3
call fcn.0040a928
mov eax, dword [ebp - 0x90]
push eax
mov ecx, ebx
mov edx, 9
mov eax, dword [esi + 0x308]
call fcn.004f6b78
inc ebx
mov eax, dword [0x578908]
inc dword [eax]
mov eax, dword [0x578908]
mov eax, dword [eax]
mov edx, dword [0x57877c]
cmp eax, dword [edx]
jge 0x536a58
mov eax, dword [0x578908]
imul eax, dword [eax], 0xd
mov edx, dword [0x578264]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, dword [0x578308]
cmp eax, dword [edx]
je 0x536868
mov edi, dword [esi + 0x308]
cmp ebx, 1
jle 0x536a6e
mov edx, ebx
mov eax, edi
call fcn.004f49fc
jmp 0x536aa3
mov ebx, dword [edi + 0x21c]
test ebx, ebx
jl 0x536a97
inc ebx
mov dword [ebp - 4], 0
push 0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004f6b78
inc dword [ebp - 4]
dec ebx
jne 0x536a80
mov edx, 2
mov eax, edi
call fcn.004f49fc
mov eax, esi
call fcn.00535f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536af1
lea eax, [ebp - 0x90]
mov edx, 7
call fcn.00404814
lea eax, [ebp - 0x54]
mov edx, 0xa
call fcn.00404814
lea eax, [ebp - 0x2c]
call fcn.00411c44
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404814
ret