Function at 0x450f80
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45144e
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
mov esi, ecx
xor edi, edi
mov ebx, 0xffffffff
call sub.MFC40.DLL_CDocument::CDocument
lea ecx, [esi + 0x54]
mov dword [ebp - 4], edi
call fcn.00458050
mov byte [ebp - 4], 1
lea ecx, [esi + 0x7c]
mov dword [esi + 0x78], ebx
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 2
lea ecx, [esi + 0x80]
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 3
lea ecx, [esi + 0x84]
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 4
lea ecx, [esi + 0x88]
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 5
lea ecx, [esi + 0x8c]
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 6
lea ecx, [esi + 0x90]
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 7
lea ecx, [esi + 0x94]
call sub.MFC40.DLL_CString::CString_3
mov byte [ebp - 4], 8
lea ecx, [esi + 0x98]
call fcn.004bce30
mov byte [ebp - 4], 9
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov al, byte [ebp - 0x11]
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov byte [esi + 0xe4], al
mov dword [esi + 0xc4], 0x3ff00000
inc dword [0x4fee50]
cmp dword [0x4fd710], edi
jne 0x4511ba
mov ecx, dword [0x4fd740]
cmp ecx, edi
je 0x4510bb
mov edx, dword [ecx + 0xc]
mov dword [0x4fd740], edx
jmp 0x451194
mov eax, dword [0x4fd73c]
cmp dword [0x4fd738], eax
jne 0x451187
push 0
call dword [sym.imp.MSVCRT40.dll_void____cdecl___void____cdecl_set_new_handler_void____cdecl___void__]
add esp, 4
push 8
call sub.MFC40.DLL_operator_new
add esp, 4
mov edi, eax
test edi, edi
jne 0x45110f
mov ebx, dword [sym.imp.MSVCRT40.dll_class_ostream____cdecl_endl_class_ostream__]
push 0x4fc498
mov ecx, dword [sym.imp.MSVCRT40.dll_class_ostream_withassign_cerr]
call dword [sym.imp.MSVCRT40.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call ebx
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
push 0
call dword [sym.imp.MSVCRT40.dll_void____cdecl___void____cdecl_set_new_handler_void____cdecl___void__]
add esp, 4
push 0xff0
call sub.MFC40.DLL_operator_new
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x451158
mov eax, dword [sym.imp.MSVCRT40.dll_class_ostream____cdecl_endl_class_ostream__]
push 0x4fc498
mov ecx, dword [sym.imp.MSVCRT40.dll_class_ostream_withassign_cerr]
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCRT40.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call dword [ebp - 0x14]
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
mov dword [edi + 4], ebx
mov eax, dword [0x4fd744]
mov dword [edi], eax
mov dword [0x4fd744], edi
mov ebx, dword [edi + 4]
mov ecx, ebx
mov dword [0x4fd73c], ebx
add dword [0x4fd73c], 0x18
lea eax, [ebx + 0xff0]
mov dword [0x4fd738], eax
jmp 0x451194
mov ecx, dword [0x4fd73c]
add dword [0x4fd73c], 0x18
mov dword [0x4fd710], ecx
mov dword [ecx], 1
xor ecx, ecx
mov eax, dword [0x4fd710]
mov dword [eax + 4], ecx
mov eax, dword [0x4fd710]
mov dword [eax + 8], ecx
mov eax, dword [0x4fd710]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4fd740]
test ecx, ecx
je 0x4511d2
mov edx, dword [ecx + 0xc]
mov dword [0x4fd740], edx
jmp 0x4512ab
mov eax, dword [0x4fd73c]
cmp dword [0x4fd738], eax
jne 0x45129e
push 0
call dword [sym.imp.MSVCRT40.dll_void____cdecl___void____cdecl_set_new_handler_void____cdecl___void__]
add esp, 4
push 8
call sub.MFC40.DLL_operator_new
add esp, 4
mov edi, eax
test edi, edi
jne 0x451226
mov ebx, dword [sym.imp.MSVCRT40.dll_class_ostream____cdecl_endl_class_ostream__]
push 0x4fc498
mov ecx, dword [sym.imp.MSVCRT40.dll_class_ostream_withassign_cerr]
call dword [sym.imp.MSVCRT40.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call ebx
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
push 0
call dword [sym.imp.MSVCRT40.dll_void____cdecl___void____cdecl_set_new_handler_void____cdecl___void__]
add esp, 4
push 0xff0
call sub.MFC40.DLL_operator_new
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x45126f
mov eax, dword [sym.imp.MSVCRT40.dll_class_ostream____cdecl_endl_class_ostream__]
push 0x4fc498
mov ecx, dword [sym.imp.MSVCRT40.dll_class_ostream_withassign_cerr]
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCRT40.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call dword [ebp - 0x14]
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
mov dword [edi + 4], ebx
mov eax, dword [0x4fd744]
mov dword [edi], eax
mov dword [0x4fd744], edi
mov ebx, dword [edi + 4]
mov ecx, ebx
mov dword [0x4fd73c], ebx
add dword [0x4fd73c], 0x18
lea eax, [ebx + 0xff0]
mov dword [0x4fd738], eax
jmp 0x4512ab
mov ecx, dword [0x4fd73c]
add dword [0x4fd73c], 0x18
xor ebx, ebx
mov dword [esi + 0xd8], ecx
mov dword [ecx], ebx
mov ecx, dword [esi + 0xd8]
mov eax, dword [0x4fd710]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xd8]
mov byte [ebp - 4], 9
mov dword [eax + 8], eax
mov eax, dword [esi + 0xd8]
mov dword [eax + 0xc], eax
mov eax, 0xb
mov byte [ebp - 4], al
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov byte [ebp - 4], 0xd
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
push 0x248
mov dword [esi + 0x100], ebx
mov byte [ebp - 4], 0xe
mov dword [esi + 0x104], ebx
mov dword [esi], vtable.CDocBase.0
mov dword [esi + 0x54], vtable.CDocBase.1.0
call sub.MFC40.DLL_operator_new
mov dword [ebp - 0x14], eax
add esp, 4
mov byte [ebp - 4], 0xf
mov edi, eax
mov eax, 0
test edi, edi
je 0x45134c
mov ecx, edi
call fcn.004893b0
mov edx, 0
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0xe
mov dword [esi + 0x6c], eax
cmp esi, 1
adc edx, 0xffffffff
and edx, ecx
lea ecx, [eax + 0x40]
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov eax, esi
pop edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret