Function at 0x490d04
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x490d0d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404990
xor eax, eax
push ebp
push 0x491494
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4914b0
call fcn.00404ae4
test eax, eax
je 0x490d6f
mov eax, dword [0x50584c]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 8]
call fcn.0045e93c
mov edx, 0x4914c4
call fcn.0045deb4
mov edx, dword [ebp - 4]
mov eax, 0x4914f4
call fcn.00404ae4
test eax, eax
je 0x49140c
lea eax, [esi + ebx*4 + 0xc3540]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x491508
call fcn.00404ae4
add eax, 3
push eax
mov eax, dword [ebp - 4]
call fcn.004047a0
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00404a00
mov edx, dword [esi + ebx*4 + 0xc3540]
mov eax, 0x491514
call fcn.00404ae4
push eax
mov eax, dword [esi + ebx*4 + 0xc3540]
call fcn.004047a0
mov ecx, eax
lea eax, [esi + ebx*4 + 0xc3540]
pop edx
call fcn.00404a40
lea edx, [ebp - 0x38]
mov eax, dword [esi + ebx*4 + 0xc3540]
call fcn.004066bc
mov edx, dword [ebp - 0x38]
lea eax, [esi + ebx*4 + 0xc3540]
call fcn.00404768
push 0x491520
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00408e64
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00408aec
push dword [ebp - 0x40]
push 0x49154c
lea edx, [ebp - 0x48]
mov eax, dword [esi + ebx*4 + 0xc3540]
call fcn.00408aec
push dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00404860
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048be68
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.00408e64
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.00408aec
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x491564
call fcn.004047ec
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d0c
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0046e31c
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 1
call fcn.0046e31c
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
push 0x491598
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x2c]
call fcn.00408aec
push dword [ebp - 0x5c]
push 0x4915c8
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x30]
call fcn.00408aec
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404860
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d0c
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0046e31c
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
push 0x4915d8
push dword [ebp - 0x2c]
push 0x4915f4
push dword [ebp - 0x30]
push 0x491600
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x34]
call fcn.00404d68
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00406610
push dword [ebp - 0x64]
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.00404860
lea eax, [ebp - 0x10]
call fcn.004044e0
lea eax, [ebp - 0x14]
call fcn.004044e0
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
mov edx, 0x491610
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d0c
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0047a144
jmp 0x491019
mov edx, 0x491640
mov eax, edi
call fcn.00478d1c
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x6c]
mov edx, 0x491650
call fcn.004048ec
je 0x491010
push dword [ebp - 0x10]
mov edx, 0x491640
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00478d1c
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x70]
push 0x49165c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404860
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0047a3c0
mov edi, dword [esi + ebx*4 + 0x40]
cmp byte [edi + 0xa1], 0
je 0x490fbf
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
lea eax, [ebp - 0x7c]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x49165c
call fcn.00404ae4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404a00
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.00408aec
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x491668
call fcn.004047ec
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d0c
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0046e31c
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 1
call fcn.0046e31c
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 2
call fcn.0046e31c
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.0046e31c
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 4
call fcn.0046e31c
lea edx, [ebp - 0x84]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call fcn.00404d68
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x18]
call fcn.00406610
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
push dword [ebp - 0x14]
push 0x4916b0
mov eax, dword [ebp - 0x20]
call fcn.00408fa0
shl eax, 5
inc eax
lea edx, [ebp - 0x88]
call fcn.00408e64
push dword [ebp - 0x88]
push 0x4915f4
push dword [ebp - 0x28]
push 0x4915f4
push dword [ebp - 0x18]
push 0x4915f4
push dword [ebp - 0x1c]
push 0x4915f4
push dword [ebp - 0x24]
push 0x4916c0
lea eax, [ebp - 0x14]
mov edx, 0xc
call fcn.00404860
mov eax, dword [0x50584c]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x220]
mov edx, 0x4916d0
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x8c]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x49165c
call fcn.00404ae4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404a00
mov eax, dword [ebp - 0x8c]
push eax
lea edx, [ebp - 0x90]
mov eax, ebx
call fcn.00408e64
mov edx, dword [ebp - 0x90]
pop eax
call fcn.004048ec
je 0x491394
lea edx, [ebp - 0x9c]
mov eax, ebx
call fcn.00408e64
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00408aec
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x491668
call fcn.004047ec
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.0048bf40
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d0c
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0046e31c
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 1
call fcn.0046e31c
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 2
call fcn.0046e31c
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.0046e31c
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 4
call fcn.0046e31c
lea edx, [ebp - 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
call fcn.00404d68
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x18]
call fcn.00406610
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
lea eax, [ebp - 0xa8]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x49165c
call fcn.00404ae4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404a00
mov edx, dword [ebp - 0xa8]
mov eax, dword [0x5672d8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, eax
mov eax, dword [0x50584c]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x90]
call fcn.0045e93c
push eax
push 0x4916e4
mov eax, dword [ebp - 0x20]
call fcn.00408fa0
shl eax, 5
inc eax
lea edx, [ebp - 0xb0]
call fcn.00408e64
push dword [ebp - 0xb0]
push 0x4915f4
push dword [ebp - 0x28]
push 0x4915f4
push dword [ebp - 0x18]
push 0x4915f4
push dword [ebp - 0x1c]
push 0x4915f4
push dword [ebp - 0x24]
push 0x4916f8
push 0x491708
push 0x491714
lea eax, [ebp - 0xac]
mov edx, 0xd
call fcn.00404860
mov edx, dword [ebp - 0xac]
pop eax
call fcn.0045deb4
mov edx, dword [ebp - 0x10]
mov eax, 0x49165c
call fcn.00404ae4
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.00404a40
mov eax, dword [ebp - 0x10]
call fcn.004047a0
cmp eax, 2
jge 0x49102f
mov eax, dword [0x50584c]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 8]
call fcn.0045e93c
push eax
push dword [ebp - 0xc]
push 0x491720
push dword [ebp - 0x14]
push 0x491708
push 0x491714
lea eax, [ebp - 0xb4]
mov edx, 5
call fcn.00404860
mov edx, dword [ebp - 0xb4]
pop eax
call fcn.0045deb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49149e
lea eax, [ebp - 0xb4]
mov edx, 5
call fcn.00404504
lea eax, [ebp - 0xa0]
call fcn.00404bec
lea eax, [ebp - 0x9c]
mov edx, 7
call fcn.00404504
lea eax, [ebp - 0x80]
call fcn.00404bec
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.00404504
lea eax, [ebp - 0x68]
call fcn.00404bec
lea eax, [ebp - 0x64]
call fcn.004044e0
lea eax, [ebp - 0x60]
mov edx, 0xa
call fcn.00404504
lea eax, [ebp - 0x38]
call fcn.00404bec
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404504
lea eax, [ebp - 4]
call fcn.004044e0
ret