Function at 0x412d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd692
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push esi
push edi
push ecx
lea edi, [ebp - 0xc8]
mov ecx, 0x2f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
push 0x12
mov ecx, dword [ebp - 0x10]
call fcn.0040e960
mov ecx, dword [ebp - 0x10]
add ecx, 0x10f4
call fcn.00417820
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1104], 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004d30c0
add esp, 4
mov dword [ebp - 4], 0
push 0x5126ec
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0040d480
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10f0], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x24]
push edx
call fcn.0040d440
lea ecx, [ebp - 0x68]
call fcn.004e8980
movzx eax, al
test eax, eax
je 0x413022
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push 0x512700
call fcn.0040d420
lea ecx, [ebp - 0x68]
call fcn.004e9200
movzx ecx, al
test ecx, ecx
je 0x413020
lea ecx, [ebp - 0x68]
call fcn.0040d5c0
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
push str.DOWN_LEFT
call fcn.0040d420
lea ecx, [ebp - 0x68]
call fcn.004e9290
movzx edx, al
test edx, edx
je 0x413020
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0x512714
call fcn.0040d420
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040e090
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 4
mov esi, esp
mov edx, dword [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 3
mov esi, esp
lea ecx, [ebp - 0x98]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
push 0
lea ecx, [ebp - 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
cmp esi, esp
call fcn.004f90e1
imul eax, eax, 0x3e8
mov dword [0x53e0dc], eax
lea ecx, [ebp - 0x68]
call fcn.004eafd0
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
push 0x51271c
call fcn.0040d420
lea ecx, [ebp - 0x68]
call fcn.004e9290
movzx eax, al
test eax, eax
je 0x413018
lea ecx, [ebp - 0x68]
call fcn.004eafd0
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0040d5f0
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 5
mov esi, esp
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 3
mov esi, esp
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10f0], 1
push 0x512724
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.0040e420
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0040e2d0
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10f4
call fcn.00417790
mov byte [ebp - 4], 6
mov esi, esp
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 3
mov esi, esp
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
lea ecx, [ebp - 0x68]
call fcn.004eb020
jmp 0x412ed4
lea ecx, [ebp - 0x68]
call fcn.004eb020
jmp 0x41304f
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10f0], 0
mov esi, esp
lea edx, [ebp - 0x80]
push edx
push 0
push 0
push 0x413210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10f0], 0
je 0x413115
push 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call sub.MFC71.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1104], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10f4
call fcn.00417740
mov esi, esp
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp esi, esp
call fcn.004f90e1
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call fcn.0049e510
push str.FFFFFF
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call fcn.0049f310
push 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call fcn.0049e3e0
push 0x512730
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call fcn.0049ec10
push 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call fcn.0049e1d0
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call fcn.0049e6e0
push 0
mov edx, dword [0x53e0dc]
push edx
push 0x12
mov ecx, dword [ebp - 0x10]
call fcn.0040e910
jmp 0x413125
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x109c
call sub.MFC71.DLL_CWnd::ShowWindow
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0040d530
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
push edx
mov ecx, ebp
push eax
lea edx, [0x4131a4]
call fcn.004f9104
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc8
cmp ebp, esp
call fcn.004f90e1
mov esp, ebp
pop ebp
ret