Function at 0x4590f4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4590fc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x45935b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x45930b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 8]
push eax
mov eax, ebx
call fcn.004590a8
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x82c]
cmp byte [eax + 0x6e], 0
je 0x45914d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459315
push 0xa
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
call fcn.0040712c
push eax
push 0x492fd4
push ebx
mov eax, dword [ebx]
call dword [eax]
test eax, 0x80000000
sete al
test al, al
jne 0x459186
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459315
lea eax, [ebp - 0x14]
call fcn.0040712c
push eax
push 5
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, 0x80000000
sete al
test al, al
jne 0x4591b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459315
lea eax, [ebp - 0x10]
call fcn.0040712c
jmp 0x4592d9
xor eax, eax
push ebp
push 0x4592cf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
jne 0x4591e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4592d9
lea eax, [ebp - 4]
call fcn.0040712c
push eax
mov eax, dword [0x4938ec]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax]
mov esi, eax
test esi, 0x80000000
sete bl
test bl, bl
jne 0x459214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4592d9
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
mov edi, eax
test edi, 0x80000000
sete byte [ebp - 0x1d]
cmp byte [ebp - 0x1d], 0
jne 0x459240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4592d9
lea eax, [ebp - 8]
call fcn.0040712c
push eax
mov eax, dword [0x4938cc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax]
mov dword [ebp - 0x24], eax
test byte [ebp - 0x21], 0x80
sete byte [ebp - 0x25]
cmp byte [ebp - 0x25], 0
jne 0x459272
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4592d9
mov eax, dword [ebp + 8]
add eax, 0xfffff7e4
call fcn.00405bfc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xa0]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x81c]
call fcn.004056a8
mov eax, dword [ebp - 0x2c]
call fcn.004058b0
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004590f4
pop ecx
push 0xa
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4592d9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
call fcn.0040712c
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4591c0
lea eax, [ebp - 0x14]
call fcn.0040712c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459315
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459362
lea eax, [ebp - 0x2c]
call fcn.00405420
lea eax, [ebp - 0x18]
call fcn.0040712c
lea eax, [ebp - 0x14]
call fcn.0040712c
lea eax, [ebp - 0x10]
call fcn.0040712c
lea eax, [ebp - 0xc]
call fcn.0040712c
lea eax, [ebp - 8]
call fcn.0040712c
lea eax, [ebp - 4]
call fcn.0040712c
ret