Function at 0x409d72
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0x48], 1
mov dword [ebp - 0xc], 0
push 2
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x3c]
mov byte [ecx], 0
mov dword [ebp - 0x4c], 0
jmp 0x409dc1
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jge 0x409dd5
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x409db8
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], 1
mov byte [ebp - 0x24], 0x65
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x23], 0x72
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x48]
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x40], 0
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0x22], 0x72
mov edx, dword [ebp - 0x10]
sub edx, 3
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
call fcn.004031f2
test eax, eax
jne 0x409f18
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x74], 0
jne 0x409eca
mov ecx, dword [ebp - 0x6c]
mov dl, byte [ebp - 0x54]
mov byte [ecx], dl
mov eax, dword [ebp - 0x6c]
mov cl, byte [ebp - 0x70]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x64], 0
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x5c], 0
jne 0x409f11
mov edx, dword [ebp - 0x50]
mov al, byte [ebp - 0x58]
mov byte [edx], al
mov ecx, dword [ebp - 0x50]
mov dl, byte [ebp - 0x64]
mov byte [ecx + 1], dl
xor eax, eax
jmp 0x40a14a
cmp dword [ebp - 0x28], 0
je 0x40a079
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x8c], 1
push 2
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x98]
mov byte [edx], 0
mov dword [ebp - 0x84], 0
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x88], 0
jne 0x409fb2
mov edx, dword [ebp - 0x80]
mov al, byte [ebp - 0x78]
mov byte [edx], al
mov ecx, dword [ebp - 0x80]
mov dl, byte [ebp - 0x84]
mov byte [ecx + 1], dl
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x90], 0
jmp 0x409fd7
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0x8c]
jge 0x409ff4
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x409fc8
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x8c]
shl edx, 2
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0
jmp 0x40a03f
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0x8c]
jge 0x40a079
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
mov cl, byte [edx + ecx*4]
mov byte [eax], cl
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40a030
cmp dword [ebp - 0x44], 0
jne 0x40a090
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x14]
mov byte [eax], cl
mov edx, dword [ebp - 0x38]
mov al, byte [ebp - 0x40]
mov byte [edx + 1], al
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x4c], 0
jmp 0x40a0a6
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x48]
jge 0x40a0cb
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
mov cl, byte [edx + ecx*4]
mov byte [eax], cl
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40a09d
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00409554
test eax, eax
jne 0x40a11c
mov dword [ebp - 0xb4], 1
mov byte [ebp - 0xa4], 0x65
mov byte [ebp - 0xa3], 0x72
mov byte [ebp - 0xa2], 0x72
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xa1], 0
mov dword [ebp - 0xa8], 0
xor eax, eax
jmp 0x40a14a
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x40a145
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret