Function at 0x40a420
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x50a4
call fcn.00429400
mov eax, dword [0x4ae7ec]
xor eax, esp
mov dword [esp + 0x50a0], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 8], eax
mov esi, ecx
cmp ebx, 0x100
jge 0x40a461
test eax, eax
je 0x40a87d
cmp byte [eax], 0
je 0x40a87d
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x208c], 0
mov byte [esp + 0x7c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
movzx eax, word [esp + 0x18]
push ecx
push edx
push eax
push 0x435158
lea ecx, [esp + 0x44]
push 0x50
push ecx
call sym.SelectBehaviorsExe.exe_TM_FormatString
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x43524c
lea edx, [esp + 0x28]
push 0xc
push edx
call fcn.004177ae
add esp, 0x14
test bl, 1
je 0x40a4f7
lea eax, [esp + 0x28]
push eax
push 0x435258
lea ecx, [esp + 0x2090]
push 0x1000
push ecx
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
add esp, 0x10
test ebx, 0x100
je 0x40a51e
lea edx, [esp + 0x28]
push edx
push 0x435258
lea eax, [esp + 0x80]
push 0x1000
push eax
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
add esp, 0x10
cmp byte [esp + 0x1c], 0
je 0x40a570
test bl, 2
je 0x40a549
lea ecx, [esp + 0x1c]
push ecx
push 0x435258
lea edx, [esp + 0x2090]
push 0x1000
push edx
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
add esp, 0x10
test ebx, 0x200
je 0x40a570
lea eax, [esp + 0x1c]
push eax
push 0x435258
lea ecx, [esp + 0x80]
push 0x1000
push ecx
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
add esp, 0x10
test bl, 4
je 0x40a6a6
cmp byte [esp + 0x2088], 0
je 0x40a5c3
push 0x1000
lea edx, [esp + 0x208c]
push 0x435100
push edx
call sym.SelectBehaviorsExe.exe_TM_AppendStringA
lea eax, [esp + 0x2094]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a5a7
sub eax, edx
push eax
lea eax, [esp + 0x3094]
push 0x20
push eax
call fcn.004219f0
add esp, 0xc
lea eax, [esp + 0x2088]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a5d0
push edi
sub eax, edx
push esi
mov byte [esp + eax + 0x3098], cl
lea ecx, [esp + 0x40a0]
push 0xfff
push ecx
call fcn.00419476
push 0x1000
lea eax, [esp + 0x1094]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x40b0]
push ecx
mov byte [esp + 0x50b3], 0
mov dword [esp + 0x20], edx
call sym.SelectBehaviorsExe.exe_TM_GetLine
lea edx, [esp + 0x109c]
push edx
push 0x435260
lea eax, [esp + 0x20ac]
push 0x1000
push eax
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
push 0x1000
lea ecx, [esp + 0x10b0]
push ecx
lea edx, [esp + 0x38]
push edx
call sym.SelectBehaviorsExe.exe_TM_GetLine
add esp, 0x38
cmp eax, 0x20
je 0x40a6a6
lea esp, [esp]
lea eax, [esp + 0x1080]
push eax
lea ecx, [esp + 0x3094]
push ecx
push str._s_s_n
lea edx, [esp + 0x2094]
push 0x1000
push edx
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
push 0x1000
lea eax, [esp + 0x1098]
push eax
lea ecx, [esp + 0x20]
push ecx
call sym.SelectBehaviorsExe.exe_TM_GetLine
add esp, 0x20
cmp eax, 0x20
jne 0x40a660
test ebx, 0x400
je 0x40a812
cmp byte [esp + 0x78], 0
je 0x40a6fc
push 0x1000
lea edx, [esp + 0x7c]
push 0x435100
push edx
call sym.SelectBehaviorsExe.exe_TM_AppendStringA
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a6e0
sub eax, edx
push eax
lea eax, [esp + 0x3094]
push 0x20
push eax
call fcn.004219f0
add esp, 0xc
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a703
push edi
sub eax, edx
push esi
mov byte [esp + eax + 0x3098], cl
lea ecx, [esp + 0x40a0]
push 0xfff
push ecx
call fcn.00419476
push 0x1000
lea eax, [esp + 0x1094]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x40b0]
push ecx
mov byte [esp + 0x50b3], 0
mov dword [esp + 0x20], edx
call sym.SelectBehaviorsExe.exe_TM_GetLine
lea edx, [esp + 0x109c]
push edx
push 0x435260
lea eax, [esp + 0x9c]
push 0x1000
push eax
call sym.SelectBehaviorsExe.exe_TM_BufferPrint
push 0x1000
lea ecx, [esp + 0x10b0]
push ecx
lea edx, [esp + 0x38]
push edx
call sym.SelectBehaviorsExe.exe_TM_GetLine
add esp, 0x38
cmp eax, 0x20
je 0x40a812
lea eax, [esp + 0x78]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a7a0
sub eax, edx
cmp eax, 0x1001
jae 0x40a7d9
cmp byte [esp + 0x3090], cl
je 0x40a7d4
lea ecx, [esp + 0x3090]
cmp eax, 0x1000
jae 0x40a7d4
mov dl, byte [ecx]
mov byte [esp + eax + 0x78], dl
inc ecx
inc eax
cmp byte [ecx], 0
jne 0x40a7c0
mov byte [esp + eax + 0x78], 0
push 0x1001
lea eax, [esp + 0x1084]
push eax
lea ecx, [esp + 0x80]
push ecx
call sym.SelectBehaviorsExe.exe_TM_AppendLine
push 0x1000
lea edx, [esp + 0x1090]
push edx
lea eax, [esp + 0x18]
push eax
call sym.SelectBehaviorsExe.exe_TM_GetLine
add esp, 0x18
cmp eax, 0x20
jne 0x40a793
cmp byte [esp + 0x2088], 0
je 0x40a859
mov eax, dword [esp + 8]
test eax, eax
je 0x40a859
cmp byte [eax], 0
je 0x40a859
push 0x435240
push eax
call fcn.00418e48
mov esi, eax
add esp, 8
test esi, esi
je 0x40a859
lea ecx, [esp + 0x2088]
push ecx
push 0x435264
push esi
call fcn.004190e0
push esi
call fcn.0041ad3c
add esp, 0x10
cmp byte [esp + 0x78], 0
je 0x40a87d
lea edx, [esp + 0x78]
push edx
push 0x435264
call sym.SelectBehaviorsExe.exe_TM_Print
add esp, 8
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x50a4]
pop esi
xor ecx, esp
call fcn.004171f3
mov esp, ebp
pop ebp
ret