Function at 0x4013d4
Capabilities:
Get process heap force flags

Disassembly:
jmp 0x40e640
push 0xffffffffffffffff
push 0x47c3b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x49a264]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], eax
push str.Erasing
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
call fcn.00443810
mov ebp, dword [esp + 0x44]
mov byte [esp + 0x30], 2
push ebp
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00443a37
push str._Block
lea ecx, [esp + 0x20]
mov bl, 3
push eax
push ecx
mov byte [esp + 0x3c], bl
call fcn.00443a37
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.004438db
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.004437a2
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.004437a2
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 1
call fcn.004437a2
mov edx, dword [0x49a264]
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x40]
mov ecx, dword [esi + 0x80]
mov ebx, edi
mov byte [esp + 0x30], 5
shr ebx, 0xa
mov eax, ebx
and eax, 0xffff
shl eax, 0x10
push eax
push 0
push 0x401
push ecx
call dword [0x4ab62c]
mov edx, dword [esi + 0x80]
push 0
push 0
push 0x402
push edx
call dword [0x4ab62c]
push 5
lea ecx, [esi + 0xdc]
call fcn.00444e5c
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
push 0x3fa
call fcn.00444ba9
mov ecx, 0x4a4988
call fcn.00401514
mov ecx, dword [esp + 0x38]
push esi
push edi
push ecx
mov ecx, 0x4a4988
call fcn.0040104b
test al, al
jne 0x40e8b9
mov eax, dword [0x49a264]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
push str.Erase_flash_block_error_
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 7
call fcn.0044392b
push 4
lea edx, [esp + 0x40]
push 0x4993d8
push edx
call fcn.00439a76
add esp, 0xc
mov dword [0x49dbc8], 4
push 0x49dbcc
push str.SOFTWAREBIOSFLASH
push 0x80000001
call dword [0x4aad70]
test eax, eax
je 0x40e7f5
push 0x49dbd0
push 0x49dbcc
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREBIOSFLASH
push 0x80000001
call dword [0x4aad6c]
mov eax, dword [0x49dbcc]
mov esi, dword [0x4aad68]
push 4
push 0x49dbc8
push 4
push 0
push str.RtnStatus
push eax
call esi
mov ecx, dword [esp + 0x38]
mov edx, dword [0x49dbcc]
mov eax, dword [ecx - 8]
push eax
push str.Erase_flash_block_error_
push 1
push 0
push str.RtnMessage
push edx
call esi
mov eax, dword [0x49dbcc]
push eax
call dword [0x4aada4]
mov ecx, 0x4a4988
call fcn.0040116d
mov al, byte [0x49dd3c]
test al, al
je 0x40e85b
push 4
call dword [0x4ab6f4]
jmp 0x40e869
push 0
push 0
push str.Erase_failure__Maybe_hardware_protected.
call fcn.00455895
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 6
call fcn.004437a2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 5
call fcn.004437a2
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.004437a2
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.004437a2
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004437a2
xor al, al
jmp 0x40ea22
push str.Programming
lea ecx, [esp + 0x24]
mov byte [0x49dd3b], 1
call fcn.00443810
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3c], 8
call fcn.00443a37
push str._Block
lea edx, [esp + 0x48]
push eax
push edx
mov byte [esp + 0x3c], 9
call fcn.00443a37
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0xa
call fcn.004438db
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 9
call fcn.004437a2
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 8
call fcn.004437a2
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 5
call fcn.004437a2
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
push 0x3fa
call fcn.00444ba9
push 0x499f90
push 0x3f3
mov ecx, esi
call fcn.00444ba9
xor ebp, ebp
test edi, edi
jbe 0x40e9e9
mov ecx, dword [esi + 0x80]
mov eax, ebp
shr eax, 0xa
push 0
lea edi, [eax + 4]
push edi
push 0x402
push ecx
call dword [0x4ab62c]
lea edi, [edi + edi*4]
lea eax, [edi + edi*4]
shl eax, 2
cdq
idiv ebx
lea edx, [esp + 0x10]
push eax
push 0x499334
push edx
call fcn.00439a76
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
push 0x3f2
call fcn.00444ba9
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push 0x1000
push ecx
push edi
mov ecx, 0x4a4988
call fcn.004012ad
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add ebp, 0x1000
add edi, 0x1000
add edx, 0x1000
cmp ebp, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
jb 0x40e959
mov ecx, 0x4a4988
call fcn.0040116d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.004437a2
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.004437a2
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004437a2
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10