Function at 0x421140
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 [0x4fd740]
test ecx, ecx
je 0x421164
mov edx, dword [ecx + 0xc]
mov dword [0x4fd740], edx
jmp 0x421238
mov eax, dword [0x4fd73c]
cmp dword [0x4fd738], eax
jne 0x42122b
push 0
mov ebp, dword [sym.imp.MSVCRT40.dll_void____cdecl___void____cdecl_set_new_handler_void____cdecl___void__]
call ebp
add esp, 4
push 8
call sub.MFC40.DLL_operator_new
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x4211ba
mov edi, 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 edi
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
push 0
call ebp
add esp, 4
push 0xff0
call sub.MFC40.DLL_operator_new
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x4211fc
mov edi, 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 edi
add esp, 4
push 1
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
mov dword [ebx + 4], ebp
mov eax, dword [0x4fd744]
mov dword [ebx], eax
mov dword [0x4fd744], ebx
mov ebp, dword [ebx + 4]
mov ecx, ebp
mov dword [0x4fd73c], ebp
add dword [0x4fd73c], 0x18
lea eax, [ebp + 0xff0]
mov dword [0x4fd738], eax
jmp 0x421238
mov ecx, dword [0x4fd73c]
add dword [0x4fd73c], 0x18
lea eax, [ecx + 0x10]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x42124d
mov edx, dword [edi]
mov ebx, dword [edi + 4]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov edx, dword [esp + 0x24]
cmp dword [esi], edx
je 0x421278
mov eax, dword [esp + 0x20]
cmp eax, dword [0x4fd710]
jne 0x421278
mov eax, dword [edi]
cmp dword [edx + 0x10], eax
jg 0x421278
mov dword [edx + 0xc], ecx
mov eax, dword [esi]
add eax, 0xc
cmp dword [eax], edx
jne 0x421293
mov dword [eax], ecx
jmp 0x421293
mov dword [edx + 8], ecx
mov eax, dword [esi]
cmp edx, eax
je 0x42128b
cmp dword [eax + 8], edx
jne 0x421293
mov dword [eax + 8], ecx
jmp 0x421293
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 [0x4fd710]
mov dword [ecx + 8], eax
mov eax, dword [0x4fd710]
mov dword [ecx + 0xc], eax
mov dword [ecx], 0
mov ebx, dword [esi]
cmp dword [ebx + 4], ecx
je 0x421480
lea edi, [edx + 4]
mov eax, dword [edi]
cmp dword [eax], 0
jne 0x421480
lea ebx, [eax + 4]
mov ebp, dword [ebx]
mov ebp, dword [ebp + 8]
cmp ebp, eax
jne 0x421399
mov ebp, dword [ebx]
mov ebp, dword [ebp + 0xc]
cmp dword [ebp], 0
je 0x421458
lea ebp, [eax + 0xc]
mov edi, dword [ebp]
cmp edx, edi
jne 0x421329
mov edx, eax
mov eax, dword [edi + 8]
mov dword [ebp], eax
mov eax, dword [edi + 8]
cmp dword [0x4fd710], eax
je 0x421306
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 0x421322
mov ebp, dword [ebx]
lea eax, [ebp + 8]
cmp dword [eax], edx
je 0x421322
mov dword [ebp + 0xc], edi
jmp 0x421324
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 [0x4fd710], eax
je 0x42135b
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 0x42138f
mov ebp, dword [edi + 4]
lea eax, [ebp + 0xc]
cmp dword [eax], edi
je 0x421382
mov dword [ebp + 8], ebx
mov dword [ebx + 0xc], edi
mov dword [edi + 4], ebx
jmp 0x421475
mov dword [eax], ebx
mov dword [ebx + 0xc], edi
mov dword [edi + 4], ebx
jmp 0x421475
mov dword [eax], ebx
mov dword [ebx + 0xc], edi
jmp 0x421453
cmp dword [ebp], 0
je 0x421458
lea ebp, [eax + 8]
mov edi, dword [ebp]
cmp edx, edi
jne 0x4213ec
mov edx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp], eax
mov eax, dword [edi + 0xc]
cmp dword [0x4fd710], eax
je 0x4213c3
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 0x4213e5
mov eax, dword [ebx]
lea ebp, [eax + 0xc]
cmp dword [ebp], edx
je 0x4213e0
mov dword [eax + 8], edi
jmp 0x4213e7
mov dword [ebp], edi
jmp 0x4213e7
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 edi, dword [eax + 4]
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 8]
cmp dword [0x4fd710], eax
je 0x42141e
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 0x42144e
mov eax, dword [edi + 4]
lea ebp, [eax + 8]
cmp dword [ebp], edi
je 0x421443
mov dword [eax + 0xc], ebx
mov dword [ebx + 8], edi
mov dword [edi + 4], ebx
jmp 0x421475
mov dword [ebp], ebx
mov dword [ebx + 8], edi
mov dword [edi + 4], ebx
jmp 0x421475
mov dword [eax], ebx
mov dword [ebx + 8], edi
mov dword [edi + 4], ebx
jmp 0x421475
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 0x4212b9
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