Function at 0x6064d8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x6064e0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x606a31
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x24]
mov edx, 0x606a48
mov eax, dword [0x6aa0fc]
call fcn.00605b98
lea ecx, [ebp - 0x10]
mov edx, 0x606a5c
mov eax, dword [0x6aa0fc]
call fcn.00605b98
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404db4
lea ecx, [ebp - 0x20]
mov dl, 1
mov eax, dword [0x6aa0fc]
call fcn.006059d0
lea ecx, [ebp - 0x10]
xor edx, edx
mov eax, dword [0x6aa0fc]
call fcn.006059d0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00404db4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov edx, dword [ebp - 0x24]
call fcn.00486254
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
call fcn.0051da8c
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
call fcn.0051de30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x60685a
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
call fcn.004c2d20
push 0x606a70
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x654]
call fcn.00409e80
push dword [ebp - 0x34]
push 0x606aa0
push dword [ebp - 0x10]
push 0x606abc
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00404e6c
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
call fcn.004c2d14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
mov edx, 0x606ac8
call fcn.004c3d24
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x606850
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00409e80
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov ecx, 0x606ae0
call fcn.00404df8
mov eax, dword [0x6a42c8]
mov eax, dword [eax]
push dword [eax + 0xa54]
push 0x606af0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
mov edx, 0x606ac8
call fcn.004c3d24
mov edx, dword [ebp - 0x14]
call fcn.004be3e4
test ebx, ebx
jne 0x6066d1
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
call fcn.004053a4
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, 0x606b04
call fcn.0051b338
jmp 0x6066fa
push 0
push 1
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
call fcn.004053a4
mov edx, dword [ebp - 0x40]
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, 0x606b04
call fcn.0051e6c8
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov edx, ebx
call fcn.0051bf3c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x6a42c8]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x606b1c
call fcn.00684818
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
call fcn.004c2d20
push 0x606b28
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x654]
call fcn.00409e80
push dword [ebp - 0x48]
push 0x606b5c
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x4c]
push 0x606b7c
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00404e6c
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
call fcn.004c2d14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.004b8820
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x50]
mov edx, 0x606a48
call fcn.00404ef8
jne 0x6067e1
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x606b88
call fcn.00404df8
jmp 0x6067f1
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x606b98
call fcn.00404df8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d8]
call fcn.004c2d20
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x10]
call fcn.004053a4
mov ecx, dword [ebp - 0x54]
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov edx, ebx
call fcn.0051c9b4
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, ebx
xor edx, edx
call fcn.0051d6d4
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, ebx
mov edx, 1
call fcn.0051ced8
inc ebx
dec dword [ebp - 0x28]
jne 0x6065ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
call fcn.004c2d20
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, 1
mov edx, 0x80ffff
call fcn.0051ca88
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, 1
mov edx, 0x8000
call fcn.0051ca88
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov edx, dword [ebp - 0x20]
call fcn.00486254
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.00486224
cmp dword [ebp - 0x58], 0
je 0x6069c3
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
call fcn.0051d3bc
dec eax
test eax, eax
jl 0x6069c3
inc eax
mov dword [ebp - 0x28], eax
xor edi, edi
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov edx, edi
call fcn.0051bf3c
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov edx, edi
call fcn.0051b3a8
dec eax
test eax, eax
jle 0x6069b9
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov edx, edi
call fcn.0051b838
mov esi, eax
dec esi
test esi, esi
jle 0x6069ad
mov ebx, 1
push edi
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0051d504
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x18]
call fcn.00404d74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jl 0x6069a9
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0051d168
inc ebx
dec esi
jne 0x60694b
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x60692b
inc edi
dec dword [ebp - 0x28]
jne 0x6068f0
mov eax, dword [0x6a460c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0051bf3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x606a38
lea eax, [ebp - 0x5c]
call fcn.004051f8
lea eax, [ebp - 0x58]
call fcn.00404aec
lea eax, [ebp - 0x54]
call fcn.004051f8
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404b10
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00405210
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404b10
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00404b10
ret