Function at 0x4066ba
Capabilities:
Reference sql statements

Disassembly:
push 0x70
mov eax, 0x4dfa35
call fcn.004cb7ce
mov esi, ecx
mov dword [ebp - 0x28], esi
call fcn.00406466
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push 0x4f5210
mov edi, 0x4f5204
push edi
push eax
mov dword [ebp - 4], ebx
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x406c11
cmp eax, ebx
jl 0x406c11
push ecx
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0xd]
mov dword [ebp - 0x3c], esp
push eax
lea ecx, [ebp - 0x5c]
call fcn.004a8fb7
push ecx
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0xd]
mov dword [ebp - 0x3c], esp
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004a8fb7
mov eax, dword [0x6e8024]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
jmp 0x406893
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x40675d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x24]
push 0x4f51f8
push eax
call fcn.00405cc8
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x406789
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x20]
push 0x4f51dc
push eax
call fcn.00405cc8
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 7
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x4067b5
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x1c]
push 0x4f51c4
push eax
call fcn.00405cc8
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 8
call fcn.00406624
mov ecx, eax
call fcn.00403c44
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406624
mov ecx, eax
call fcn.00403c44
push 0x4f51c0
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406823
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403c44
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 8]
call fcn.00403c44
push 0x4f51b4
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
je 0x406849
push 0x4f51ac
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406864
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403c44
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x8c]
call fcn.00403c44
lea ecx, [ebp - 0x1c]
call fcn.00401637
lea ecx, [ebp - 0x20]
call fcn.00401637
lea ecx, [ebp - 0x24]
call fcn.00401637
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x40688d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push ebx
push eax
mov byte [ebp - 4], 5
call dword [ecx + 0x10]
cmp eax, ebx
je 0x406745
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x4068c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x2c], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push 0x4f5068
push edi
push eax
mov byte [ebp - 4], 9
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x406bc9
cmp eax, ebx
jl 0x406bc9
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push ebx
push ecx
mov byte [ebp - 4], 0xa
call dword [eax + 0x10]
cmp eax, ebx
jne 0x406b6a
mov edi, dword [0x4f4480]
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x406934
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x24]
push 0x4f51f8
push eax
call fcn.00405cc8
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x406960
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x1c]
push 0x4f5054
push eax
call fcn.00405cc8
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x40698c
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x20]
push 0x4f503c
push eax
call fcn.00405cc8
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call edi
lea eax, [ebp - 0x6c]
push eax
call edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x7c]
push edx
push ebx
push 0x4f5030
push eax
mov byte [ebp - 4], 0xf
call dword [ecx + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.00405810
push ebx
push ebx
lea edx, [ebp - 0x6c]
push edx
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x4f5024
push eax
call dword [ecx + 0x10]
lea ecx, [ebp - 0x6c]
call fcn.00405810
push dword [ebp - 0x30]
mov esi, eax
push dword [ebp - 0x1c]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406a58
push ebx
push 0x4f5018
push dword [ebp - 0x24]
call fcn.004107f7
add esp, 0xc
test eax, eax
je 0x406a58
push 0x4f500c
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406a33
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x90], esi
jmp 0x406b09
push 0x4f5004
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406b09
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x94], esi
jmp 0x406b09
push 0x4f500c
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406aa2
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406aa2
push ebx
push str.CPU_Core
push dword [ebp - 0x24]
call fcn.004107f7
add esp, 0xc
test eax, eax
je 0x406aa2
mov eax, dword [ebp - 0x3c]
cmp eax, 0x1f
ja 0x406aa2
mov ecx, dword [ebp - 0x28]
mov dword [ecx + eax*4 + 0xc], esi
jmp 0x406b09
push str.Level
push dword [ebp - 0x20]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406b09
push str.Remaining_Life
push dword [ebp - 0x24]
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406b09
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00406624
mov eax, dword [eax]
push 0x4f4fdc
push eax
call fcn.004cc0a2
pop ecx
pop ecx
test eax, eax
jne 0x406b09
cmp esi, 0x64
ja 0x406b09
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406624
mov ecx, dword [ebp - 0x28]
push eax
add ecx, 0x98
call fcn.004aedb8
mov dword [eax], esi
mov esi, dword [0x4f4488]
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call esi
lea ecx, [ebp - 0x20]
call fcn.00401637
lea ecx, [ebp - 0x1c]
call fcn.00401637
lea ecx, [ebp - 0x24]
call fcn.00401637
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x406b44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push ebx
push eax
mov byte [ebp - 4], 0xa
call dword [ecx + 0x10]
cmp eax, ebx
je 0x40691c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x406b7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x406b8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x30]
call fcn.00401637
lea ecx, [ebp - 0x34]
call fcn.00401637
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040658e
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0040658e
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x406bc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x406c21
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x406bd7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x30]
call fcn.00401637
lea ecx, [ebp - 0x34]
call fcn.00401637
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040658e
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0040658e
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x406c1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406c1f
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x406c1f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
call fcn.004cb8a6
ret