Function at 0x4846a0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push esi
inc dword [ecx + 4]
push edi
push ebp
mov esi, ecx
mov ecx, dword [0x4fe1a8]
test ecx, ecx
je 0x4846c4
mov edx, dword [ecx + 0xc]
mov dword [0x4fe1a8], edx
jmp 0x484798
mov eax, dword [0x4fe1a4]
cmp dword [0x4fe1a0], eax
jne 0x48478b
push 0
mov edi, dword [sym.imp.MSVCRT40.dll_void____cdecl___void____cdecl_set_new_handler_void____cdecl___void__]
call edi
add esp, 4
push 8
call sub.MFC40.DLL_operator_new
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x48471a
mov ebp, 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 ebp
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
push 0
call edi
add esp, 4
push 0xff0
call sub.MFC40.DLL_operator_new
add esp, 4
mov edi, eax
test edi, edi
jne 0x48475c
mov ebp, 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 ebp
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
mov dword [ebx + 4], edi
mov eax, dword [0x4fe1ac]
mov dword [ebx], eax
mov dword [0x4fe1ac], ebx
mov edi, dword [ebx + 4]
mov ecx, edi
mov dword [0x4fe1a4], edi
add dword [0x4fe1a4], 0x14
lea eax, [edi + 0xff0]
mov dword [0x4fe1a0], eax
jmp 0x484798
mov ecx, dword [0x4fe1a4]
add dword [0x4fe1a4], 0x14
lea eax, [ecx + 0x10]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x4847a7
mov edx, dword [edi]
mov dword [eax], edx
mov edx, dword [esp + 0x24]
cmp dword [esi], edx
je 0x4847d2
mov eax, dword [esp + 0x20]
cmp dword [0x4fe198], eax
jne 0x4847d2
mov eax, dword [edi]
cmp dword [edx + 0x10], eax
jg 0x4847d2
mov dword [edx + 0xc], ecx
mov eax, dword [esi]
add eax, 0xc
cmp dword [eax], edx
jne 0x4847ed
mov dword [eax], ecx
jmp 0x4847ed
mov dword [edx + 8], ecx
mov eax, dword [esi]
cmp edx, eax
je 0x4847e5
cmp dword [eax + 8], edx
jne 0x4847ed
mov dword [eax + 8], ecx
jmp 0x4847ed
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov dword [eax + 0xc], ecx
mov dword [ecx + 4], edx
mov edx, ecx
mov eax, dword [0x4fe198]
mov dword [ecx + 8], eax
mov eax, dword [0x4fe198]
mov dword [ecx + 0xc], eax
mov dword [ecx], 0
mov ebx, dword [esi]
cmp dword [ebx + 4], ecx
je 0x4849dd
lea edi, [edx + 4]
mov eax, dword [edi]
cmp dword [eax], 0
jne 0x4849dd
lea ebx, [eax + 4]
mov ebp, dword [ebx]
mov ebp, dword [ebp + 8]
cmp ebp, eax
jne 0x4848f6
mov ebp, dword [ebx]
mov ebp, dword [ebp + 0xc]
cmp dword [ebp], 0
je 0x4849b5
lea ebp, [eax + 0xc]
mov edi, dword [ebp]
cmp edx, edi
jne 0x484883
mov edx, eax
mov eax, dword [edi + 8]
mov dword [ebp], eax
mov eax, dword [edi + 8]
cmp dword [0x4fe198], eax
je 0x484860
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], edx
je 0x48487c
mov ebp, dword [ebx]
lea eax, [ebp + 8]
cmp dword [eax], edx
je 0x48487c
mov dword [ebp + 0xc], edi
jmp 0x48487e
mov dword [eax], edi
mov dword [edi + 8], edx
mov dword [ebx], edi
mov eax, dword [edx + 4]
mov dword [eax], 1
mov eax, dword [edx + 4]
mov ebx, dword [eax + 4]
mov dword [ebx], 0
mov eax, dword [edx + 4]
mov edi, dword [eax + 4]
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
cmp dword [0x4fe198], eax
je 0x4848b5
mov dword [eax + 4], edi
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], edi
je 0x4848e9
mov ebp, dword [edi + 4]
lea eax, [ebp + 0xc]
cmp dword [eax], edi
je 0x4848dc
mov dword [ebp + 8], ebx
mov dword [ebx + 0xc], edi
mov dword [edi + 4], ebx
jmp 0x4849d2
mov dword [eax], ebx
mov dword [ebx + 0xc], edi
mov dword [edi + 4], ebx
jmp 0x4849d2
mov dword [eax], ebx
mov dword [ebx + 0xc], edi
mov dword [edi + 4], ebx
jmp 0x4849d2
cmp dword [ebp], 0
je 0x4849b5
lea ebp, [eax + 8]
mov edi, dword [ebp]
cmp edx, edi
jne 0x484949
mov edx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp], eax
mov eax, dword [edi + 0xc]
cmp dword [0x4fe198], eax
je 0x484920
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], edx
je 0x484942
mov eax, dword [ebx]
lea ebp, [eax + 0xc]
cmp dword [ebp], edx
je 0x48493d
mov dword [eax + 8], edi
jmp 0x484944
mov dword [ebp], edi
jmp 0x484944
mov dword [eax], edi
mov dword [edi + 0xc], edx
mov dword [ebx], edi
mov eax, dword [edx + 4]
mov dword [eax], 1
mov eax, dword [edx + 4]
mov ebx, dword [eax + 4]
mov dword [ebx], 0
mov eax, dword [edx + 4]
mov ebx, dword [eax + 4]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 8]
cmp dword [0x4fe198], eax
je 0x48497b
mov dword [eax + 4], ebx
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [esi]
add eax, 4
cmp dword [eax], ebx
je 0x4849ab
mov eax, dword [ebx + 4]
lea ebp, [eax + 8]
cmp dword [ebp], ebx
je 0x4849a0
mov dword [eax + 0xc], edi
mov dword [edi + 8], ebx
mov dword [ebx + 4], edi
jmp 0x4849d2
mov dword [ebp], edi
mov dword [edi + 8], ebx
mov dword [ebx + 4], edi
jmp 0x4849d2
mov dword [eax], edi
mov dword [edi + 8], ebx
mov dword [ebx + 4], edi
jmp 0x4849d2
mov dword [eax], 1
mov dword [ebp], 1
mov edx, dword [edi]
mov ebx, dword [edx + 4]
mov dword [ebx], 0
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax + 4], edx
jne 0x484813
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
mov dword [edx], 1
pop ebx
mov dword [eax], ecx
add esp, 8
ret 0x10