Function at 0x4af100
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4af109
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404fa8
mov eax, dword [ebp - 0xc]
call fcn.00404fa8
xor eax, eax
push ebp
push 0x4af4fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4af514
call fcn.004ad824
mov dl, 1
mov eax, dword [0x41ccc4]
call fcn.00403bf4
mov dword [ebp - 0x20], eax
mov dl, 1
mov eax, dword [0x41ccc4]
call fcn.00403bf4
mov dword [ebp - 0x24], eax
mov dl, 1
mov eax, dword [0x41ccc4]
call fcn.00403bf4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10c]
mov eax, ebx
call fcn.0048ef44
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, ebx
call fcn.0048ef44
mov edx, 0x4af52c
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0047aaa4
mov eax, ebx
call fcn.0047cedc
jmp 0x4af1fe
mov eax, ebx
mov edx, 0x4af55c
call fcn.0047bab4
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10c]
mov edx, 0x4af570
call fcn.0047bab4
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10c]
call fcn.0047d158
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10c]
cmp byte [ebx + 0xa1], 0
je 0x4af1ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
mov edx, 0x4af580
call fcn.004ad300
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
mov edx, 0x4af58c
call fcn.004ad290
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
mov edx, 0x4af5a0
call fcn.004abf74
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4af3ef
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.004053b0
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x108]
mov eax, ebx
call fcn.0048ef44
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x44]
push eax
push 0x4af5b4
push dword [ebp - 8]
push 0x4af5b4
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404e78
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x4c]
xor ecx, ecx
pop eax
call fcn.0040b320
mov eax, dword [ebp - 0x40]
push eax
mov eax, ebx
call fcn.0048ef44
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0047aaa4
mov eax, ebx
call fcn.0047cedc
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x104]
mov ecx, dword [ebp - 0x20]
call fcn.00483214
jmp 0x4af3cd
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4af3bf
inc esi
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
call fcn.004053b0
mov edx, dword [ebp - 0x58]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x6c]
lea ecx, [ebp - 0x68]
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
call fcn.0047bab4
lea edx, [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
call fcn.004053b0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
inc ebx
dec esi
jne 0x4af355
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
call fcn.0047d158
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
cmp byte [eax + 0xa1], 0
je 0x4af343
inc dword [ebp - 0x1c]
dec dword [ebp - 0x2c]
jne 0x4af278
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x70]
mov ecx, 0x4af5c0
mov edx, dword [ebp - 0xc]
call fcn.00404e04
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call fcn.004053b0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
mov si, 0xffe7
call fcn.00403e20
mov eax, 0x4af5d0
call fcn.004ad824
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af505
lea eax, [ebp - 0x70]
call fcn.00404af8
lea eax, [ebp - 0x6c]
call fcn.0040522c
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00404b1c
lea eax, [ebp - 0x60]
call fcn.0040522c
lea eax, [ebp - 0x5c]
call fcn.00404af8
lea eax, [ebp - 0x58]
call fcn.0040522c
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00404b1c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404b1c
lea eax, [ebp - 0x38]
call fcn.0040522c
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404b1c
lea eax, [ebp - 0x18]
mov edx, dword [0x4a4a80]
mov ecx, 3
call fcn.00405818
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b1c
ret