Function at 0x40a162
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a1d1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a1cd
imul eax, dword [ebx]
jmp 0x40a1c2
mov ecx, eax
test ecx, ecx
je 0x40a1f0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a1e9
push ebx
push eax
call fcn.0050c1fc
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a1d7
call fcn.0050c1fc
add esp, 4
mov eax, 0x5e9296
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x854c67
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402008
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a232
push ebx
call fcn.0050c1fc
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.0040a7ab
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40a24e
push ebx
call fcn.0050c1fc
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a764
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x854c72
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402008
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a28e
push ebx
call fcn.0050c1fc
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a2a2
push ebx
call fcn.0050c1fc
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
jne 0x40a2fd
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x854c76
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402008
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a2e0
push ebx
call fcn.0050c1fc
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a2f4
push ebx
call fcn.0050c1fc
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x40a35c
push 0x854ca5
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0x854ca7
mov ecx, 3
call fcn.00401199
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402008
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a344
push ebx
call fcn.0050c1fc
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a358
push ebx
call fcn.0050c1fc
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.00402350
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402350
mov dword [ebp - 0x30], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0x50c6d0
call fcn.0050c1f6
add esp, 0x1c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a971
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
push dword [ebp - 0x38]
push 1
push 0
push 1
push dword [ebp - 0x34]
push 1
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x2c]
push 0x14
push dword [ebp - 4]
call fcn.0040a98b
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a423
cmp dword [ebp - 0x14], 0
je 0x40a423
mov eax, 1
jmp 0x40a428
mov eax, 0
test eax, eax
je 0x40a75b
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x854ce9
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402008
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a460
push ebx
call fcn.0050c1fc
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a474
push ebx
call fcn.0050c1fc
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], esp
push 0x10
push 0x40
mov eax, 0x25
call fcn.0050c1f0
cmp dword [ebp - 0x2c], esp
je 0x40a4ab
push 0x372
push 0x4065a76
push 6
call fcn.0050c1ea
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40a752
lea eax, [ebp - 0x20]
push eax
call fcn.0040a971
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040a971
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push 1
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x2c]
push 1
push 1
push 1
push 0xffffffff
push 4
push dword [ebp - 0x14]
call fcn.0040a98b
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a54f
cmp dword [ebp - 0x20], 0
je 0x40a54f
mov eax, 1
jmp 0x40a554
mov eax, 0
test eax, eax
je 0x40a71c
mov dword [ebp - 0x2c], esp
push 0x10
push 0
push dword [ebp - 0x1c]
mov eax, 0x26
call fcn.0050c1f0
add esp, 0xc
cmp dword [ebp - 0x2c], esp
je 0x40a595
push 0x4bd
push 0x4065a76
push 6
call fcn.0050c1ea
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00402350
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push 1
push 0
push 1
push 0
push 1
push dword [ebp - 0x1c]
push 1
push 0
push 1
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0x20]
call fcn.0040a98b
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a713
push 8
push dword [ebp - 0x1c]
call fcn.0040aae8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40a713
push dword [ebp - 0x28]
call fcn.0040ac36
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040acee
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a64b
push ebx
call fcn.0050c1fc
add esp, 4
push dword [ebp + 8]
push 4
mov eax, 2
call fcn.0050c1de
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x38], ebx
call fcn.004027bf
mov dword [ebp - 0x3c], ecx
mov edi, dword [ebp - 0x38]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x40a68f
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x3c]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x38]
call fcn.0050c202
add esp, 8
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x3c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x34]
push edi
test eax, eax
je 0x40a6d4
push eax
mov ebx, eax
call fcn.0040112e
inc eax
push eax
call fcn.0050c1e4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [edi], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a6e7
push ebx
call fcn.0050c1fc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
mov eax, 0x27
call fcn.0050c1f0
cmp dword [ebp - 0x2c], esp
je 0x40a713
push 0x652
push 0x4065a76
push 6
call fcn.0050c1ea
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.0040ab85
cmp dword [ebp - 0x24], 0
jne 0x40a4b8
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x1c]
mov eax, 0x28
call fcn.0050c1f0
cmp dword [ebp - 0x2c], esp
je 0x40a752
push 0x6e9
push 0x4065a76
push 6
call fcn.0050c1ea
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.0040ab85
lea eax, [ebp - 4]
push eax
call fcn.0040ab85
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00404b9f
jmp 0x40a773
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a784
push ebx
call fcn.0050c1fc
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a794
push ebx
call fcn.0050c1fc
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a7a4
push ebx
call fcn.0050c1fc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc