Function at 0xf05d328
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword fs:[0x18]
push ebx
push esi
mov esi, dword [eax + 0xf18]
push edi
add esi, 0x2d8
call dword [0xf076cd4]
push 1
mov dword [ebp - 8], eax
call dword [0xf076cc4]
push eax
movzx eax, word [esi + 0x94]
push eax
call sym.ntvdm.exe_VdmMapFlat
mov ebx, eax
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xa0]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xb8]
mov edi, dword [esi + 0xc0]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc4]
mov dword [ebp - 0x20], eax
mov ax, word [esi + 0xbc]
mov word [ebp - 0x18], ax
mov ax, word [esi + 0x98]
mov word [ebp - 0x12], ax
mov ax, word [esi + 0x94]
mov word [ebp - 0x14], ax
mov ax, word [esi + 0x90]
mov word [ebp - 0x10], ax
mov ax, word [esi + 0x8c]
mov word [ebp - 0xe], ax
mov ax, word [esi + 0xc8]
mov word [ebp - 0x16], ax
call fcn.0f05ca01
movzx eax, word [0xf0ae816]
mov dword [esi + 0xbc], eax
mov ax, word [0xf0ae814]
push ebx
mov word [esi + 0xb8], ax
call fcn.0f05cc86
movzx eax, word [ebx + 0x30]
xor ecx, ecx
cmp ax, cx
jne 0xf05d469
cmp word [ebx + 0x2e], cx
jne 0xf05d469
movzx eax, word [0xf0ae824]
mov dword [esi + 0xc8], eax
mov eax, dword [0xf0ae81c]
mov ax, word [eax]
mov word [esi + 0xc4], ax
mov eax, dword [0xf0ae81c]
mov dx, word [0xf0ae81a]
sub word [eax], dx
mov dword [ebp - 4], 1
jmp 0xf05d480
movzx eax, ax
mov dword [esi + 0xc8], eax
mov ax, word [ebx + 0x2e]
mov word [esi + 0xc4], ax
mov dword [ebp - 4], ecx
cmp word [ebp - 0x38], cx
je 0xf05d4d0
mov eax, dword [ebp - 0x38]
push 1
push dword [ebp - 8]
add eax, eax
push dword [ebp - 0x16]
movzx eax, ax
sub word [esi + 0xc4], ax
mov dword [ebp - 0xc], eax
call sym.ntvdm.exe_VdmMapFlat
mov dword [ebp - 8], eax
movzx eax, word [esi + 0xc4]
push 0
push eax
movzx eax, word [esi + 0xc8]
push eax
call sym.ntvdm.exe_VdmMapFlat
movzx ecx, word [ebp - 0xc]
push ecx
push dword [ebp - 8]
push eax
call fcn.0f0057f0
add esp, 0xc
movzx eax, byte [ebp + 8]
sub eax, 0
je 0xf05d501
dec eax
je 0xf05d4f0
dec eax
jne 0xf05d509
movzx eax, word [ebx + 0x2a]
push eax
movzx eax, word [ebx + 0x2c]
push eax
call fcn.0f05d98f
jmp 0xf05d509
movzx eax, word [ebx + 0x2a]
push eax
movzx eax, word [ebx + 0x2c]
push eax
call fcn.0f05d8f2
jmp 0xf05d509
push dword [ebp - 0x3c]
call fcn.0f05d81d
call sym.ntvdm.exe_VDDSimulate16
cmp dword [ebp - 4], 0
je 0xf05d523
mov eax, dword [0xf0ae81c]
mov cx, word [0xf0ae81a]
add word [eax], cx
push ebx
call fcn.0f05cbef
call fcn.0f05ca5e
mov eax, dword [ebp - 0x40]
mov dword [esi + 0xb0], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0xa4], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xa8], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x9c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xa0], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xb4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc4], eax
movzx eax, word [ebp - 0x18]
mov dword [esi + 0xbc], eax
movzx eax, word [ebp - 0x12]
mov dword [esi + 0x98], eax
movzx eax, word [ebp - 0x14]
mov dword [esi + 0x94], eax
movzx eax, word [ebp - 0x10]
mov dword [esi + 0x90], eax
movzx eax, word [ebp - 0xe]
mov dword [esi + 0x8c], eax
movzx eax, word [ebp - 0x16]
and edi, 0xfffffffe
mov dword [esi + 0xc0], edi
pop edi
mov dword [esi + 0xc8], eax
pop esi
pop ebx
leave
ret 4