Function at 0x4017c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ecx, 0x56bdb8
call fcn.0047a770
mov dword [ebp - 0xc], eax
jmp 0x4017ee
mov ecx, dword [ebp - 0xc]
call fcn.0047a770
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401979
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 0x12345678
jne 0x401950
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
cdq
mov ecx, 0xa
idiv ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x40183f
mov dword [ebp - 0x18], 4
push 4
mov edx, dword [ebp - 0xc]
add edx, 0x18
push edx
call fcn.004013c0
add esp, 8
test eax, eax
je 0x4018c1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.MEMORY_OVERWRITE_after__s_n__before_block:__p_n__alloced_in_:__s_line__ld_n
call fcn.004be1e4
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.hexdump_of_block_start_follows._nfirst__ld___lxh__bytes_should_be_0xEE__nthose_not_being_0xEE_got_hit_by_something._n
call fcn.004be1e4
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x64
jle 0x4018a2
mov dword [ebp - 0x1c], 0x64
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x18
push edx
call fcn.004011c0
add esp, 8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 8]
push eax
call fcn.004013c0
add esp, 8
test eax, eax
je 0x40194e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
push str.MEMORY_OVERWRITE_after__s_n__after_block:__p_n__alloced_in:__s_line__ld_n
call fcn.004be1e4
add esp, 0x14
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.hexdump_of_block_end_follows._nlast__ld___lxh__bytes_should_be_0xEE__nthose_not_being_0xEE_got_hit_by_something._n
call fcn.004be1e4
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x64
jle 0x401929
mov dword [ebp - 0x20], 0x64
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 8]
sub ecx, dword [ebp - 0x20]
push ecx
call fcn.004011c0
add esp, 8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x401974
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.error:_MEMORY_LIST_CORRUPTED_after__s_n__in_block:__p_n__number__:__d_n
call fcn.004be1e4
add esp, 0x10
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x401979
jmp 0x4017e3
cmp dword [ebp - 8], 0
jle 0x401997
mov ecx, dword [ebp - 8]
push ecx
push str.sfk_exits_with_code_10_due_to__d_memory_errors._n
call fcn.004be1e4
add esp, 8
push 0xa
call fcn.004be6a3
mov esp, ebp
pop ebp
ret