Function at 0xf054a38
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0xf18]
add ebx, 0x2d8
call dword [0xf06518c]
push 1
mov dword [ebp - 0xc], eax
call dword [0xf06517c]
push eax
xor eax, eax
mov ax, word [ebx + 0x94]
push eax
call sym.ntvdm.exe_VdmMapFlat
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x9c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xb4]
mov edi, dword [ebx + 0xac]
mov esi, dword [ebx + 0xc0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc4]
mov dword [ebp - 0x20], eax
mov ax, word [ebx + 0xbc]
mov word [ebp - 0x18], ax
mov ax, word [ebx + 0x98]
mov word [ebp - 0x12], ax
mov ax, word [ebx + 0x94]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 0x90]
mov word [ebp - 0x10], ax
mov ax, word [ebx + 0x8c]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 0xc8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x16], ax
call fcn.0f005146
movzx eax, word [0xf09c0b6]
push dword [ebp - 4]
mov dword [ebx + 0xbc], eax
mov ax, word [0xf09c0b4]
mov word [ebx + 0xb8], ax
call fcn.0f054230
mov ecx, dword [ebp - 4]
mov ax, word [ecx + 0x30]
test ax, ax
jne 0xf054b82
cmp word [ecx + 0x2e], ax
jne 0xf054b82
movzx eax, word [0xf09c0c4]
mov dword [ebx + 0xc8], eax
mov eax, dword [0xf09c0bc]
mov ax, word [eax]
mov word [ebx + 0xc4], ax
mov eax, dword [0xf09c0bc]
mov dx, word [0xf09c0ba]
sub word [eax], dx
mov dword [ebp - 8], 1
jmp 0xf054b9a
and dword [ebp - 8], 0
movzx eax, ax
mov dword [ebx + 0xc8], eax
mov ax, word [ecx + 0x2e]
mov word [ebx + 0xc4], ax
cmp word [ebp - 0x38], 0
je 0xf054bee
push 1
push dword [ebp - 0xc]
add edi, edi
push dword [ebp - 0x16]
sub word [ebx + 0xc4], di
call sym.ntvdm.exe_VdmMapFlat
mov esi, eax
movzx eax, word [ebx + 0xc4]
push 0
push eax
xor eax, eax
mov ax, word [ebx + 0xc8]
push eax
call sym.ntvdm.exe_VdmMapFlat
movzx ecx, di
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
movzx eax, byte [ebp + 8]
sub eax, 0
je 0xf054c23
dec eax
je 0xf054c10
dec eax
jne 0xf054c2b
movzx eax, word [ecx + 0x2a]
push eax
xor eax, eax
mov ax, word [ecx + 0x2c]
push eax
call fcn.0f0550a5
jmp 0xf054c2b
movzx eax, word [ecx + 0x2a]
push eax
xor eax, eax
mov ax, word [ecx + 0x2c]
push eax
call fcn.0f055007
jmp 0xf054c2b
push dword [ebp - 0x3c]
call fcn.0f054f37
call sym.ntvdm.exe_VDDSimulate16
cmp dword [ebp - 8], 0
je 0xf054c45
mov eax, dword [0xf09c0bc]
mov cx, word [0xf09c0ba]
add word [eax], cx
push dword [ebp - 4]
call fcn.0f054199
call fcn.0f0050f4
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0xa0], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0xb4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0xb8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xc4], eax
movzx eax, word [ebp - 0x18]
mov dword [ebx + 0xbc], eax
movzx eax, word [ebp - 0x12]
mov dword [ebx + 0x98], eax
movzx eax, word [ebp - 0x14]
mov dword [ebx + 0x94], eax
movzx eax, word [ebp - 0x10]
mov dword [ebx + 0x90], eax
movzx eax, word [ebp - 0xe]
mov dword [ebx + 0x8c], eax
movzx eax, word [ebp - 0x16]
mov dword [ebx + 0xac], edi
and esi, 0xfffffffe
pop edi
mov dword [ebx + 0xc0], esi
pop esi
mov dword [ebx + 0xc8], eax
pop ebx
leave
ret 4