Function at 0x405050
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x406dc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CStdioFile::CStdioFile
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0xd0], ebx
call fcn.004017f0
push 0x40a560
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call sub.MFC42.DLL_CString::CString_1
push 0x40a560
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 2
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x208]
add esi, 0x208
mov byte [esp + 0xd0], 3
cmp dword [eax - 8], ebx
je 0x405288
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 5
call sub.MFC42.DLL_CString::CString_2
push 0x40a560
lea ecx, [esp + 0x50]
mov byte [esp + 0xd4], 6
call sub.MFC42.DLL_CString::operator_1
push 0x40a560
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::operator_1
push 0x40a560
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::operator_1
or ebp, 0xffffffff
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x60], bl
mov dword [esp + 0xc4], ebx
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xd4], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
push ecx
push ebx
push edx
push 0x4053e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x4051f8
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], bl
call fcn.004019c0
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], ebp
call fcn.00405e20
xor al, al
jmp 0x405364
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x405223
push 0x1f4
call ebp
inc esi
cmp esi, 0x3c
jl 0x405200
cmp esi, 0xc
jl 0x40524a
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40524a
push 0x103
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [esp + 0x5c], 1
je 0x4052d5
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], bl
call fcn.004019c0
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], 0xffffffff
call fcn.00405e20
xor al, al
jmp 0x405364
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x54]
push edx
lea ecx, [eax + 0x200]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], bl
call fcn.004019c0
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], 0xffffffff
call fcn.00405e20
mov al, 1
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret