Function at 0x4063e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406521
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
inc dword [ecx + 4]
push edi
mov esi, ecx
mov ecx, dword [0x4fc4b8]
test ecx, ecx
je 0x40641e
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [0x4fc4b8], edx
jmp 0x4064fa
mov eax, dword [0x4fc4b4]
cmp dword [0x4fc4b0], eax
jne 0x4064eb
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 0x406472
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 0x4064bb
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 - 0x10], eax
call dword [sym.imp.MSVCRT40.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call dword [ebp - 0x10]
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
mov dword [edi + 4], ebx
mov eax, dword [0x4fc4bc]
mov dword [edi], eax
mov dword [0x4fc4bc], edi
mov ebx, dword [edi + 4]
mov dword [0x4fc4b4], ebx
mov dword [ebp - 0x10], ebx
add dword [0x4fc4b4], 0x18
lea eax, [ebx + 0xff0]
mov dword [0x4fc4b0], eax
jmp 0x4064fa
mov eax, dword [0x4fc4b4]
add dword [0x4fc4b4], 0x18
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x14]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
je 0x406536
mov eax, dword [edi]
lea ecx, [ebx + 4]
lea edx, [edi + 4]
mov dword [ebx], eax
push edx
call sub.MFC40.DLL_CString::CString_2
mov dword [ebp - 4], 0xffffffff
jmp 0x406536
mov ecx, dword [ebp + 0x10]
cmp dword [esi], ecx
je 0x406562
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4fc4a8]
jne 0x406562
mov eax, dword [edi]
cmp dword [ecx + 0x10], eax
jg 0x406562
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [esi]
add eax, 0xc
cmp dword [eax], ecx
jne 0x406583
mov dword [eax], edx
jmp 0x406583
mov edx, dword [ebp - 0x10]
mov dword [ecx + 8], edx
mov eax, dword [esi]
cmp ecx, eax
je 0x406578
cmp dword [eax + 8], ecx
jne 0x406583
mov dword [eax + 8], edx
jmp 0x406583
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
mov ecx, edx
mov eax, dword [0x4fc4a8]
mov dword [edx + 8], eax
mov eax, dword [0x4fc4a8]
mov dword [edx + 0xc], eax
mov dword [edx], 0
mov eax, dword [esi]
cmp dword [eax + 4], edx
je 0x406768
lea edx, [ecx + 4]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x406768
lea edi, [eax + 4]
mov ebx, dword [edi]
mov ebx, dword [ebx + 8]
cmp ebx, eax
jne 0x406689
mov ebx, dword [edi]
mov ebx, dword [ebx + 0xc]
cmp dword [ebx], 0
je 0x406741
lea ebx, [eax + 0xc]
mov edx, dword [ebx]
cmp ecx, edx
jne 0x406619
mov ecx, eax
mov eax, dword [edx + 8]
mov dword [ebx], eax
mov eax, dword [edx + 8]
cmp dword [0x4fc4a8], eax
je 0x4065f6
mov dword [eax + 4], ecx
mov eax, dword [edi]
mov dword [edx + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], ecx
je 0x406612
mov ebx, dword [edi]
lea eax, [ebx + 8]
cmp dword [eax], ecx
je 0x406612
mov dword [ebx + 0xc], edx
jmp 0x406614
mov dword [eax], edx
mov dword [edx + 8], ecx
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov dword [eax], 1
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
mov dword [edx], 0
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
mov edi, dword [edx + 8]
mov eax, dword [edi + 0xc]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
cmp dword [0x4fc4a8], eax
je 0x40664b
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], edx
je 0x40667f
mov ebx, dword [edx + 4]
lea eax, [ebx + 0xc]
cmp dword [eax], edx
je 0x406672
mov dword [ebx + 8], edi
mov dword [edi + 0xc], edx
mov dword [edx + 4], edi
jmp 0x40675d
mov dword [eax], edi
mov dword [edi + 0xc], edx
mov dword [edx + 4], edi
jmp 0x40675d
mov dword [eax], edi
mov dword [edi + 0xc], edx
jmp 0x40673c
cmp dword [ebx], 0
je 0x406741
lea ebx, [eax + 8]
mov edx, dword [ebx]
cmp ecx, edx
jne 0x4066d7
mov ecx, eax
mov eax, dword [edx + 0xc]
mov dword [ebx], eax
mov eax, dword [edx + 0xc]
cmp dword [0x4fc4a8], eax
je 0x4066b0
mov dword [eax + 4], ecx
mov eax, dword [edi]
mov dword [edx + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], ecx
je 0x4066d0
mov eax, dword [edi]
lea ebx, [eax + 0xc]
cmp dword [ebx], ecx
je 0x4066cc
mov dword [eax + 8], edx
jmp 0x4066d2
mov dword [ebx], edx
jmp 0x4066d2
mov dword [eax], edx
mov dword [edx + 0xc], ecx
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov dword [eax], 1
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
mov dword [edx], 0
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
mov edi, dword [edx + 0xc]
mov eax, dword [edi + 8]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 8]
cmp dword [0x4fc4a8], eax
je 0x406709
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], edx
je 0x406737
mov eax, dword [edx + 4]
lea ebx, [eax + 8]
cmp dword [ebx], edx
je 0x40672d
mov dword [eax + 0xc], edi
mov dword [edi + 8], edx
mov dword [edx + 4], edi
jmp 0x40675d
mov dword [ebx], edi
mov dword [edi + 8], edx
mov dword [edx + 4], edi
jmp 0x40675d
mov dword [eax], edi
mov dword [edi + 8], edx
mov dword [edx + 4], edi
jmp 0x40675d
mov dword [eax], 1
mov dword [ebx], 1
mov ecx, dword [edx]
mov ebx, dword [ecx + 4]
mov dword [ebx], 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax + 4], ecx
jne 0x4065ac
mov eax, dword [esi]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [eax + 4]
pop ebx
mov eax, dword [ebp + 8]
mov dword [ecx], 1
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10