Function at 0x402500
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409b6b
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x40e0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x434], 0xf
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
mov eax, dword [0x40eca0]
mov dword [ebp - 4], ebx
cmp eax, dword [ebp + 8]
jb 0x4027ec
push ebx
push 0x40a9be
lea ecx, [ebp - 0x448]
call fcn.004023d0
push 0x209
lea ecx, [ebp - 0x324]
push ebx
push ecx
call fcn.004031e0
push 0x105
lea edx, [ebp - 0x118]
push ebx
push edx
call fcn.004031e0
add esp, 0x18
lea ecx, [ebp - 0x458]
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x460], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x105
lea edx, [ebp - 0x118]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 0x105
lea eax, [ebp - 0x42c]
push eax
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x118]
push ebx
push ecx
call fcn.00403fad
mov eax, dword [0x40ecac]
add esp, 0x24
cmp eax, ebx
jne 0x4025ef
xor edi, edi
jmp 0x40260e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4025fe
xor edi, edi
jmp 0x40260e
mov edx, dword [0x40ecac]
push ebx
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp esi, ebx
je 0x40261b
mov ecx, 0x40a9bc
mov eax, esi
jmp 0x402622
mov ecx, 0x40a9be
mov eax, ecx
movzx edx, word [ebp - 0x450]
push ecx
movzx ecx, word [ebp - 0x44e]
push eax
movzx eax, word [ebp - 0x44c]
push eax
movzx eax, word [ebp - 0x452]
push ecx
movzx ecx, word [ebp - 0x456]
push edx
movzx edx, word [ebp - 0x458]
push eax
push ecx
push edx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x324]
push str.__s_:_04d_02d_02d_02d_02d_02d:_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x324]
add esp, 0x2c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402680
sub eax, edx
push eax
lea edx, [ebp - 0x324]
push edx
lea ecx, [ebp - 0x448]
call fcn.004023d0
mov edx, dword [ebp + 0x10]
cmp edx, ebx
je 0x4026be
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4026a8
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x448]
call fcn.004022b0
mov eax, dword [ebp - 0x448]
mov esi, 0x10
cmp dword [ebp - 0x434], esi
jae 0x4026d7
lea eax, [ebp - 0x448]
lea ecx, [ebp - 0x460]
push ecx
push ebx
lea edx, [ebp - 0x45c]
push edx
push ebx
push ebx
push eax
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x45c]
cmp eax, ebx
jne 0x402727
push str.Debug:_Cannot_allocate_memory._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x460], ebx
cmp dword [ebp - 0x434], esi
jb 0x4027ec
mov eax, dword [ebp - 0x448]
push eax
jmp 0x4027e4
test byte [0x40eca8], 1
je 0x402737
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x40eca8], 2
je 0x4027bc
cmp edi, ebx
je 0x4027bc
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4027bc
mov ecx, dword [ebp - 0x45c]
xor eax, eax
push ecx
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x45c]
inc eax
push edx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x468], eax
call fcn.004024d0
cmp dword [ebp - 0x434], esi
jb 0x40279f
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x464], eax
jmp 0x4027ab
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x464], ecx
lea edx, [ebp - 0x46c]
push edx
push ebx
push 0x4a
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x45c]
push eax
mov dword [ebp - 0x460], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x45c], ebx
cmp dword [ebp - 0x434], esi
jb 0x4027ec
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.004037fb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403171
mov esp, ebp
pop ebp
ret