Function at 0x659860
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x659868
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
xor eax, eax
push ebp
push 0x659e89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x534]
mov edx, 0x64
call fcn.0057ed2c
xor eax, eax
push ebp
push 0x6598d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x408]
mov dl, 1
call fcn.004cb6f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6598e3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x538]
mov dl, 1
call fcn.004f8994
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x538]
mov eax, esi
call fcn.004f8a4c
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x1a0]
call fcn.004a3de0
mov edx, dword [ebp - 0x10]
mov ebx, dword [edx + 0x538]
mov edx, dword [ebx + 0x70]
mov edi, dword [edx + 0xc]
cmp eax, edi
jge 0x65994a
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004f8a4c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x1a0]
call fcn.004a3de0
mov edx, eax
mov eax, ebx
call fcn.004f80dc
jmp 0x659953
mov edx, edi
mov eax, ebx
call fcn.004f80dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x538]
mov dl, 1
call fcn.004f8ba4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x538]
call fcn.004f8a4c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x538]
add eax, 0x80
call fcn.00406edc
lea eax, [ebp - 8]
mov edx, 0x659ea4
call fcn.00406f30
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x610]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00472b34
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.00406f30
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x61f], 0
je 0x6599ed
push dword [ebp - 8]
push 0x659f20
mov eax, dword [ebp - 0x10]
push dword [eax + 0x620]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407380
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3b4]
mov edx, dword [eax]
call dword [edx + 0xdc]
test al, al
je 0x659a0f
lea eax, [ebp - 8]
mov edx, 0x659f50
call fcn.00407230
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4f8]
call fcn.005b19fc
test al, al
je 0x659a51
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4fc]
call fcn.005b19fc
test al, al
je 0x659a42
lea eax, [ebp - 8]
mov edx, 0x659f74
call fcn.00407230
jmp 0x659a7f
lea eax, [ebp - 8]
mov edx, 0x659fcc
call fcn.00407230
jmp 0x659a7f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4fc]
call fcn.005b19fc
test al, al
je 0x659a72
lea eax, [ebp - 8]
mov edx, 0x65a004
call fcn.00407230
jmp 0x659a7f
lea eax, [ebp - 8]
mov edx, 0x65a044
call fcn.00407230
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4e0]
mov eax, dword [eax + 0x64]
mov edx, 0x808080
call fcn.004a2b2c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4e0]
xor edx, edx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], edx
xor edx, edx
call fcn.004f8ca0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4e0]
xor edx, edx
call fcn.004f8994
mov eax, dword [0x67d250]
mov eax, dword [eax]
call fcn.0051c130
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x410]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4cc]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
push ebp
push 0x659b1c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x490]
xor edx, edx
mov dword [eax + 0xc], edx
mov dl, 1
call fcn.004cb6f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x659b26
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x61b], 0
jne 0x659be1
mov eax, dword [ebp - 0x10]
call fcn.0065ab78
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4f8]
call fcn.005b19fc
test al, al
jne 0x659b71
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4fc]
call fcn.005b19fc
test al, al
jne 0x659b71
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.0065bb84
jmp 0x659be1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4f8]
call fcn.005b19fc
test al, al
je 0x659ba4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4fc]
call fcn.005b19fc
test al, al
je 0x659ba4
mov edx, 3
mov eax, dword [ebp - 0x10]
call fcn.0065bb84
jmp 0x659be1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4f8]
call fcn.005b19fc
test al, al
je 0x659bc2
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0065bb84
jmp 0x659be1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4fc]
call fcn.005b19fc
test al, al
je 0x659be1
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0065bb84
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6e0]
call fcn.00471794
test al, al
je 0x659c06
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x6e0]
call fcn.00406f30
jmp 0x659c16
lea ecx, [ebp - 4]
mov edx, 0x65a068
mov eax, dword [ebp - 0x10]
call fcn.0064cd9c
mov eax, dword [ebp - 8]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6e8], eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0065e068
test al, al
jne 0x659c54
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0065e2bc
mov eax, dword [ebp - 0x10]
call fcn.0065e48c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x408]
xor edx, edx
call fcn.004cb6f0
push 0x65a07c
call sub.KERNEL32.DLL_OutputDebugStringW
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x534]
mov eax, dword [ebp - 0x10]
call fcn.006619c4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x534]
mov edx, dword [eax + 0x1b0]
call fcn.0057ed2c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x534]
mov ecx, dword [eax + 0x1b0]
mov edx, dword [eax + 0x1b8]
mov eax, dword [0x67d250]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0057e668
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3a8]
cmp byte [eax + 0x57], 0
je 0x659d66
mov eax, dword [ebp - 0x10]
call fcn.0064e278
test al, al
je 0x659cee
mov eax, dword [ebp - 0x10]
call fcn.0065c4f8
jmp 0x659d6e
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x65a0c8
mov edx, 0x65a1b0
mov eax, dword [ebp - 0x10]
call fcn.006532c0
push 0x30
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x460]
call fcn.004f8a4c
mov eax, dword [ebp - 0x2c]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0x10]
call fcn.00501360
push eax
call sub.user32.dll_MessageBoxW
mov eax, dword [ebp - 0x10]
call fcn.00517d6c
push 1
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x65a1e4
mov edx, 0x65a220
mov eax, dword [ebp - 0x10]
call fcn.006629fc
push 0
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x659d6e
mov eax, dword [ebp - 0x10]
call fcn.0065c4f8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3a0]
call fcn.004f8a4c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004707ac
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60c]
call fcn.0057ab74
test al, al
je 0x659e25
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0066329c
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x65a2bc
mov edx, 0x65a34c
mov eax, dword [ebp - 0x10]
call fcn.006532c0
push 0x30
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x460]
call fcn.004f8a4c
mov eax, dword [ebp - 0x3c]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0x10]
call fcn.00501360
push eax
call sub.user32.dll_MessageBoxW
mov eax, dword [ebp - 0x10]
call fcn.00517d6c
push 1
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x65a384
mov edx, 0x65a3c0
mov eax, dword [ebp - 0x10]
call fcn.006629fc
push 0
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x659e2f
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.0066329c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x659e90
lea eax, [ebp - 0x40]
call fcn.00406ecc
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00406ed4
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00406ed4
lea eax, [ebp - 0x2c]
call fcn.00406ecc
lea eax, [ebp - 0x20]
call fcn.00406ecc
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00406ed4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406ed4
ret