Function at 0x406830
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406976
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 [0x4fc4d0]
test ecx, ecx
je 0x40686e
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [0x4fc4d0], edx
jmp 0x40694a
mov eax, dword [0x4fc4cc]
cmp dword [0x4fc4c8], eax
jne 0x40693b
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 0x4068c2
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 0x40690b
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 [0x4fc4d4]
mov dword [edi], eax
mov dword [0x4fc4d4], edi
mov ebx, dword [edi + 4]
mov dword [0x4fc4cc], ebx
mov dword [ebp - 0x10], ebx
add dword [0x4fc4cc], 0x18
lea eax, [ebx + 0xff0]
mov dword [0x4fc4c8], eax
jmp 0x40694a
mov eax, dword [0x4fc4cc]
add dword [0x4fc4cc], 0x18
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x14]
add edi, 0x10
mov dword [ebp - 0x14], edi
je 0x406988
push ebx
mov ecx, edi
call sub.MFC40.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
jmp 0x406988
mov edi, dword [ebp + 0x10]
cmp dword [esi], edi
je 0x4069c1
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4fc4c0]
jne 0x4069c1
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.MSVCRT40.dll__mbscmp]
add esp, 8
test eax, eax
jl 0x4069c1
mov edx, dword [ebp - 0x10]
mov dword [edi + 0xc], edx
mov eax, dword [esi]
add eax, 0xc
cmp dword [eax], edi
jne 0x4069e2
mov dword [eax], edx
jmp 0x4069e2
mov edx, dword [ebp - 0x10]
mov dword [edi + 8], edx
mov eax, dword [esi]
cmp edi, eax
je 0x4069d7
cmp dword [eax + 8], edi
jne 0x4069e2
mov dword [eax + 8], edx
jmp 0x4069e2
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 ecx, edx
mov dword [edx + 4], edi
mov eax, dword [0x4fc4c0]
mov dword [edx + 8], eax
mov eax, dword [0x4fc4c0]
mov dword [edx + 0xc], eax
mov dword [edx], 0
mov eax, dword [esi]
cmp dword [eax + 4], edx
je 0x406bc3
lea edx, [ecx + 4]
mov eax, dword [edx]
cmp dword [eax], 0
jne 0x406bc3
lea edi, [eax + 4]
mov ebx, dword [edi]
mov ebx, dword [ebx + 8]
cmp ebx, eax
jne 0x406ae8
mov ebx, dword [edi]
mov ebx, dword [ebx + 0xc]
cmp dword [ebx], 0
je 0x406b9c
lea ebx, [eax + 0xc]
mov edx, dword [ebx]
cmp ecx, edx
jne 0x406a78
mov ecx, eax
mov eax, dword [edx + 8]
mov dword [ebx], eax
mov eax, dword [edx + 8]
cmp dword [0x4fc4c0], eax
je 0x406a55
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 0x406a71
mov ebx, dword [edi]
lea eax, [ebx + 8]
cmp dword [eax], ecx
je 0x406a71
mov dword [ebx + 0xc], edx
jmp 0x406a73
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 [0x4fc4c0], eax
je 0x406aaa
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 0x406ade
mov ebx, dword [edx + 4]
lea eax, [ebx + 0xc]
cmp dword [eax], edx
je 0x406ad1
mov dword [ebx + 8], edi
mov dword [edi + 0xc], edx
mov dword [edx + 4], edi
jmp 0x406bb8
mov dword [eax], edi
mov dword [edi + 0xc], edx
mov dword [edx + 4], edi
jmp 0x406bb8
mov dword [eax], edi
mov dword [edi + 0xc], edx
jmp 0x406b97
cmp dword [ebx], 0
je 0x406b9c
lea ebx, [eax + 8]
mov edx, dword [ebx]
cmp ecx, edx
jne 0x406b32
mov ecx, eax
mov eax, dword [edx + 0xc]
mov dword [ebx], eax
mov eax, dword [edx + 0xc]
cmp dword [0x4fc4c0], eax
je 0x406b0f
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 0x406b2b
mov ebx, dword [edi]
lea eax, [ebx + 0xc]
cmp dword [eax], ecx
je 0x406b2b
mov dword [ebx + 8], edx
jmp 0x406b2d
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 [0x4fc4c0], eax
je 0x406b64
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 0x406b92
mov ebx, dword [edx + 4]
lea eax, [ebx + 8]
cmp dword [eax], edx
je 0x406b88
mov dword [ebx + 0xc], edi
mov dword [edi + 8], edx
mov dword [edx + 4], edi
jmp 0x406bb8
mov dword [eax], edi
mov dword [edi + 8], edx
mov dword [edx + 4], edi
jmp 0x406bb8
mov dword [eax], edi
mov dword [edi + 8], edx
mov dword [edx + 4], edi
jmp 0x406bb8
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 0x406a0b
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