Function at 0x405a24
Capabilities:
Print debug messages

Disassembly:
push 0x894
mov eax, 0x448e88
call fcn.004386f7
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x898], ecx
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], ecx
mov word [ebp - 0x854], ax
mov esi, dword [ebp + 8]
and esi, 0xf
mov dword [ebp - 4], ecx
cmp dword [0x468630], esi
jb 0x405e31
push ecx
mov eax, 0x44d8ac
push eax
lea ecx, [ebp - 0x854]
call fcn.00401db2
push 0x412
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00438dc0
push 0x20a
lea eax, [ebp - 0x83c]
push 0
push eax
call fcn.00438dc0
lea eax, [ebp + 0x14]
add esp, 0x18
mov dword [ebp - 0x89c], eax
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, 0x105
push edi
lea eax, [ebp - 0x83c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
push ecx
push ecx
push edi
lea eax, [ebp - 0x630]
push eax
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x83c]
push eax
call fcn.0043967a
mov eax, dword [0x46863c]
add esp, 0x24
test eax, eax
je 0x405b0c
push dword [0x468640]
push eax
call fcn.0043965b
pop ecx
pop ecx
test eax, eax
jne 0x405b10
xor edi, edi
jmp 0x405b20
push 0
push dword [0x46863c]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp dword [0x468634], 0
mov edx, 0x44d8ac
je 0x405b8f
test ebx, ebx
mov ecx, 0x44dcac
cmove ecx, edx
push ecx
mov eax, 0x44dc60
cmovne eax, ebx
push eax
movzx eax, word [ebp - 0x870]
push eax
movzx eax, word [ebp - 0x872]
push eax
movzx eax, word [ebp - 0x874]
push eax
movzx eax, word [ebp - 0x876]
push eax
movzx eax, word [ebp - 0x87a]
push eax
movzx eax, word [ebp - 0x87c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x424]
push 0x44dcb0
push eax
call fcn.0040593a
add esp, 0x2c
jmp 0x405bbe
test ebx, ebx
mov eax, 0x44dcac
cmove eax, edx
push eax
mov eax, 0x44dc60
cmovne eax, ebx
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x424]
push str.__s_:_hs_s
push eax
call fcn.0040593a
add esp, 0x14
cmp word [ebp - 0x424], 0
jne 0x405bce
xor ebx, ebx
mov eax, ebx
jmp 0x405bdd
lea eax, [ebp - 0x424]
push eax
call fcn.0043860f
pop ecx
xor ebx, ebx
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x854]
call fcn.00401db2
cmp dword [ebp + 0x10], 0
je 0x405c2e
push 3
push dword [ebp + 0x10]
lea eax, [ebp - 0x86c]
push eax
call fcn.00430e80
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 1
call fcn.00405310
push ebx
push 1
lea ecx, [ebp - 0x86c]
mov byte [ebp - 4], bl
call fcn.00401ba5
cmp dword [ebp - 0x840], 8
lea ecx, [ebp - 0x89c]
push ecx
push ebx
lea ecx, [ebp - 0x898]
push ecx
push ebx
lea eax, [ebp - 0x854]
cmovae eax, dword [ebp - 0x854]
push ebx
push eax
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0x898], 0
mov ebx, eax
mov dword [ebp - 0x8a0], ebx
jne 0x405c88
push str.Debug:_Cannot_allocate_memory._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ecx, ecx
mov dword [ebp - 0x89c], ecx
jmp 0x405e31
test byte [0x468638], 1
je 0x405c9d
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x468644], 0
je 0x405d69
xor ecx, ecx
mov dword [ebp - 0x858], 0xf
mov dword [ebp - 0x85c], ecx
mov byte [ebp - 0x86c], cl
push 2
pop ebx
mov byte [ebp - 4], bl
test esi, esi
je 0x405ceb
cmp esi, ebx
jbe 0x405ce8
cmp esi, 3
je 0x405ceb
cmp esi, 4
je 0x405ce3
cmp esi, 5
jne 0x405ceb
push 6
jmp 0x405ce5
push 5
pop ebx
jmp 0x405ceb
xor ebx, ebx
inc ebx
mov eax, dword [ebp + 8]
push 3
and eax, 0xffff0000
push ecx
push dword [ebp - 0x898]
or ebx, eax
lea eax, [ebp - 0x894]
push eax
call fcn.00430d3e
add esp, 0x10
lea ecx, [ebp - 0x86c]
push eax
call fcn.00405956
lea ecx, [ebp - 0x894]
call fcn.004010d7
cmp dword [ebp - 0x858], 0x10
lea eax, [ebp - 0x86c]
cmovae eax, dword [ebp - 0x86c]
push eax
push ebx
push 0x80000000
push dword [0x46864c]
push dword [0x468648]
call dword [0x468644]
add esp, 0x14
lea ecx, [ebp - 0x86c]
mov byte [ebp - 4], 0
call fcn.004010d7
mov ebx, dword [ebp - 0x8a0]
test byte [0x468638], 2
je 0x405e15
test edi, edi
je 0x405e15
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405e15
push 0xc
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.00438dc0
mov esi, dword [ebp - 0x898]
add esp, 0xc
test esi, esi
jne 0x405dae
xor eax, eax
jmp 0x405dc0
lea eax, [ebx + 1]
push eax
push esi
call fcn.0043965b
mov esi, dword [ebp - 0x898]
pop ecx
pop ecx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
xor eax, eax
cmp word [esi], ax
je 0x405ddb
push esi
call fcn.0043860f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x854]
call fcn.00401db2
cmp dword [ebp - 0x840], 8
lea eax, [ebp - 0x854]
cmovae eax, dword [ebp - 0x854]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x860]
push eax
xor eax, eax
push eax
push 0x4a
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x898]
xor eax, eax
mov dword [ebp - 0x89c], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ecx, ecx
mov dword [ebp - 0x898], ecx
push ecx
push 1
lea ecx, [ebp - 0x854]
call fcn.00401ba5
call fcn.004386a6
ret