Function at 0x49aa19
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4a
push 0
push 0
dec ecx
jne 0x49a7b5
push ecx
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
mov ecx, 9
lea eax, [ebp - 0x60]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0x84]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0xa8]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0xcc]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0xf0]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0x114]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0x138]
mov edx, dword [0x401110]
call fcn.00405054
mov ecx, 9
lea eax, [ebp - 0x15c]
mov edx, dword [0x401110]
call fcn.00405054
xor eax, eax
push ebp
push 0x49b28e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1b0]
mov eax, ebx
call fcn.00408e64
mov eax, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1ac]
call fcn.00408aec
mov ecx, dword [ebp - 0x1ac]
lea eax, [ebp - 0x1a8]
mov edx, 0x49b2a8
call fcn.004047ec
mov eax, dword [ebp - 0x1a8]
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 - 0x1b4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1b4]
call fcn.00408fa0
mov edi, eax
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 1
call fcn.0046e31c
lea edx, [ebp - 0x1b8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1b8]
call fcn.00408fa0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 2
call fcn.0046e31c
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
mov edx, dword [ebp - 4]
mov eax, 0x49b2dc
call fcn.00404ae4
test eax, eax
je 0x49a99d
lea eax, [ebp - 0x1bc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x49b2dc
call fcn.00404ae4
mov edx, eax
add edx, 3
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00404a00
mov eax, dword [ebp - 0x1bc]
call fcn.00408fa0
mov dword [ebp - 0x10], eax
jmp 0x49a9a2
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 9
ja case.default.0x49a9ae
jmp dword [eax*4 + 0x49a9b5]
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
dec edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
inc edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
dec edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
inc edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
dec edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x194], eax
jmp case.default.0x49a9ae
inc edi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x170]
dec eax
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x194]
dec eax
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x194]
dec eax
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x194]
dec eax
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x170]
dec eax
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x170]
dec eax
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x194]
inc eax
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x194]
inc eax
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x194]
inc eax
mov dword [ebp - 0x184], eax
push 0x49b2e8
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x170]
call fcn.00408e64
mov eax, dword [ebp - 0x1c8]
lea edx, [ebp - 0x1c4]
call fcn.00408aec
push dword [ebp - 0x1c4]
push 0x49b330
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x194]
call fcn.00408e64
mov eax, dword [ebp - 0x1d0]
lea edx, [ebp - 0x1cc]
call fcn.00408aec
push dword [ebp - 0x1cc]
lea eax, [ebp - 0x1c0]
mov edx, 4
call fcn.00404860
mov eax, dword [ebp - 0x1c0]
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 - 0x1d4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x74]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 1
call fcn.0046e31c
lea edx, [ebp - 0x1d8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x98]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 2
call fcn.0046e31c
lea edx, [ebp - 0x1dc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x50]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.0046e31c
lea edx, [ebp - 0x1e0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0xbc]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 4
call fcn.0046e31c
lea edx, [ebp - 0x1e4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0xe0]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 5
call fcn.0046e31c
lea edx, [ebp - 0x1e8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x128]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 6
call fcn.0046e31c
lea edx, [ebp - 0x1ec]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x14c]
call fcn.00404578
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
mov eax, dword [ebp - 0x128]
mov edx, 0x49b340
call fcn.004048ec
jne 0x49ad48
mov eax, dword [ebp - 0x18]
mov edx, 0x49b34c
call fcn.004048ec
jne 0x49ad51
cmp dword [ebp - 0x128], 0
jne 0x49ad79
mov eax, dword [0x50584c]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 8]
call fcn.0045e93c
mov edx, 0x49b35c
call fcn.0045deb4
jmp 0x49b20e
push 0x49b378
lea edx, [ebp - 0x1f8]
mov eax, dword [ebp - 0x170]
call fcn.00408e64
mov eax, dword [ebp - 0x1f8]
lea edx, [ebp - 0x1f4]
call fcn.00408aec
push dword [ebp - 0x1f4]
push 0x49b398
lea edx, [ebp - 0x200]
mov eax, dword [ebp - 0x194]
call fcn.00408e64
mov eax, dword [ebp - 0x200]
lea edx, [ebp - 0x1fc]
call fcn.00408aec
push dword [ebp - 0x1fc]
push 0x49b3a8
lea edx, [ebp - 0x208]
mov eax, ebx
call fcn.00408e64
mov eax, dword [ebp - 0x208]
lea edx, [ebp - 0x204]
call fcn.00408aec
push dword [ebp - 0x204]
lea eax, [ebp - 0x1f0]
mov edx, 6
call fcn.00404860
mov eax, dword [ebp - 0x1f0]
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]
mov dword [ebp - 0x14], 9
lea eax, [ebp - 0x180]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0x84]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x3c], eax
push 0x49b2e8
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00408e64
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.00408aec
push dword [ebp - 0x210]
push 0x49b330
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00408e64
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.00408aec
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
mov edx, 4
call fcn.00404860
mov eax, dword [ebp - 0x20c]
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 - 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x220]
mov eax, edi
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 1
call fcn.0046e31c
lea edx, [ebp - 0x224]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x24]
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 2
call fcn.0046e31c
lea edx, [ebp - 0x228]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x28]
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.0046e31c
lea edx, [ebp - 0x22c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x2c]
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 4
call fcn.0046e31c
lea edx, [ebp - 0x230]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x30]
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 5
call fcn.0046e31c
lea edx, [ebp - 0x234]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x34]
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
mov eax, dword [eax + 0x30]
mov edx, 6
call fcn.0046e31c
lea edx, [ebp - 0x238]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x38]
call fcn.00404534
mov eax, dword [esi + ebx*4 + 0x40]
call fcn.00477d18
cmp dword [edi], 0
je 0x49b142
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jge 0x49b060
mov eax, dword [ebp - 0x1c]
add dword [eax], 0x168
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jge 0x49b071
mov eax, dword [ebp - 0x20]
add dword [eax], 0x168
push 0x49b3c0
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00408e64
push dword [ebp - 0x23c]
push 0x49b3d0
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00408e64
push dword [ebp - 0x240]
push 0x49b3e0
mov eax, dword [ebp - 0x30]
push dword [eax]
push 0x49b3f0
mov eax, dword [ebp - 0x2c]
push dword [eax]
push 0x49b400
mov eax, dword [ebp - 0x28]
push dword [eax]
push 0x49b410
lea eax, [ebp - 0x248]
mov edx, dword [edi]
call fcn.00404d68
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00406610
push dword [ebp - 0x244]
push 0x49b424
mov eax, dword [ebp - 0x34]
push dword [eax]
push 0x49b434
mov eax, dword [ebp - 0x38]
push dword [eax]
push 0x49b444
lea eax, [ebp - 0x250]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx]
call fcn.00404d68
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
call fcn.00406610
push dword [ebp - 0x24c]
push 0x49b450
mov eax, dword [ebp - 0x3c]
mov edx, 0x13
call fcn.00404860
jmp 0x49b14a
mov eax, dword [ebp - 0x3c]
call fcn.004044e0
add dword [ebp - 0x3c], 4
add dword [ebp - 0x38], 4
add dword [ebp - 0x34], 4
add dword [ebp - 0x30], 4
add dword [ebp - 0x2c], 4
add dword [ebp - 0x28], 4
add dword [ebp - 0x24], 4
add edi, 4
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 4
dec dword [ebp - 0x14]
jne 0x49ae94
push 0x49b460
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 0x10]
call fcn.00408e64
push dword [ebp - 0x258]
push 0x49b474
push dword [ebp - 0x114]
push dword [ebp - 0x110]
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
push dword [ebp - 0x104]
push dword [ebp - 0x100]
push dword [ebp - 0xfc]
push dword [ebp - 0xf8]
push dword [ebp - 0xf4]
push 0x49b48c
push 0x49b4a0
lea eax, [ebp - 0x254]
mov edx, 0xe
call fcn.00404860
mov eax, dword [ebp - 0x254]
push eax
mov eax, dword [0x50584c]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 8]
call fcn.0045e93c
pop edx
call fcn.0045deb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b295
lea eax, [ebp - 0x258]
mov edx, 2
call fcn.00404504
lea eax, [ebp - 0x250]
call fcn.00404bec
lea eax, [ebp - 0x24c]
call fcn.004044e0
lea eax, [ebp - 0x248]
call fcn.00404bec
lea eax, [ebp - 0x244]
call fcn.004044e0
lea eax, [ebp - 0x240]
mov edx, 0x27
call fcn.00404504
lea eax, [ebp - 0x15c]
mov ecx, 0x48
mov edx, dword [0x401110]
call fcn.00405140
lea eax, [ebp - 0x18]
call fcn.004044e0
lea eax, [ebp - 4]
call fcn.004044e0
ret