Function at 0x66439cf0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [0x66452824]
test eax, eax
je 0x66439dc0
mov dword [esp], ebx
call sym.krnl386.exe16_LoadLibrary16
sub esp, 4
mov ebx, eax
cmp ax, 0x20
ja 0x66439d58
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
movzx eax, ax
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x3c], eax
call fcn.66426a90
sub esp, 8
mov edi, eax
test eax, eax
je 0x66439d44
call dword [sym.imp.ntdll.dll_RtlAcquirePebLock]
mov eax, dword [0x66452828]
test eax, eax
jne 0x66439d8e
jmp 0x66439df0
mov eax, dword [eax]
test eax, eax
je 0x66439df0
cmp esi, dword [eax + 4]
jne 0x66439d88
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym.krnl386.exe16_FreeLibrary16
xor eax, eax
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov dword [esp], str.gdi.exe
call sym.krnl386.exe16_LoadLibrary16
sub esp, 4
mov dword [esp], str.user.exe
call sym.krnl386.exe16_LoadLibrary16
mov dword [0x66452824], 1
sub esp, 4
jmp 0x66439d31
mov eax, dword [0x66452820]
test eax, eax
je 0x66439f68
mov dword [esp + 8], 0x24
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x66439d93
mov ecx, 0x6858
mov word [eax + 8], bx
mov ebx, 0xffffea50
mov dword [eax + 4], esi
mov word [eax + 0xa], cx
mov eax, dword [ebp - 0x30]
mov word [edx + 0x10], bx
mov dword [edx + 0x18], edi
mov dword [ebp - 0x30], edx
mov dword [edx + 0xc], eax
mov eax, dword [0x66452820]
mov dword [edx + 0x12], eax
mov eax, 0x6858
mov word [edx + 0x16], ax
mov eax, 0xffffe950
mov word [edx + 0x1c], ax
mov eax, 0x664399ae
sub eax, edx
mov dword [edx + 0x1e], eax
mov eax, dword [0x66452828]
mov dword [edx], eax
mov dword [0x66452828], edx
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
test eax, eax
je 0x66439f48
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call fcn.66426a90
mov edx, dword [ebp - 0x2c]
sub esp, 8
test eax, eax
mov edi, eax
je 0x66439f48
lea eax, [edx + 0xa]
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call sym.krnl386.exe16_MapLS
mov ebx, eax
mov eax, dword [ebp - 0x38]
sub esp, 4
mov dword [esp], eax
call sym.krnl386.exe16_MapLS
mov dword [ebp - 0x1c], ebx
sub esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call sym.krnl386.exe16_K32WOWCallback16Ex
mov ecx, dword [ebp - 0x2c]
sub esp, 0x14
mov dword [esp], ecx
call sym.krnl386.exe16_UnMapLS
sub esp, 4
mov dword [esp], ebx
call sym.krnl386.exe16_UnMapLS
mov edx, dword [ebp - 0x24]
sub esp, 4
test edx, edx
mov edx, dword [ebp - 0x30]
jne 0x66439f48
mov dword [esp], esi
call sym.krnl386.exe16_UTUnRegister
sub esp, 4
jmp 0x66439d44
mov eax, dword [ebp - 0x34]
add edx, 0x16
mov dword [eax], edx
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov dword [esp], str.KERNEL
call sym.krnl386.exe16_GetModuleHandle16
sub esp, 4
movzx eax, ax
mov dword [esp + 4], str.UTGlue16
mov dword [esp], eax
call fcn.66426a90
sub esp, 8
mov dword [0x66452820], eax
test eax, eax
jne 0x66439dfd
jmp 0x66439d93