Function at 0x4038b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
add ecx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
movzx edx, byte [ecx + 2]
movzx esi, byte [ecx + 5]
mov dword [ebp - 0x28], eax
movzx eax, byte [ecx + 1]
movzx edi, byte [ecx + 3]
shl edx, 8
add edx, eax
movzx eax, dx
mov ebx, eax
shl ebx, 4
sub ebx, eax
movzx eax, byte [ecx + 6]
shl eax, 8
add eax, esi
movzx esi, byte [ecx + 4]
shl eax, 0x10
shl esi, 8
add esi, edi
movzx esi, si
add esi, eax
lea eax, [ecx + ebx]
lea esi, [ebx + esi + 7]
mov dword [ebp - 0x24], eax
add esi, ecx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x34], eax
test dx, dx
je 0x403ba0
mov edi, ecx
jmp 0x4039d7
cmp bl, 0xe5
ja 0x403b50
cmp bl, 0xc8
jne 0x403b10
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov edx, 2
mov dword [esp + 0xc], 1
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dbg.HLPFILE_AllocLink
mov ebx, eax
test ebx, ebx
je 0x4039bb
movzx eax, byte [edi + 0xb]
movzx edx, byte [edi + 0xa]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x20], eax
movzx eax, byte [edi + 0xd]
movzx edx, byte [edi + 0xc]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x24], eax
movzx eax, byte [edi + 0xf]
movzx edx, byte [edi + 0xe]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x28], eax
movzx eax, byte [edi + 0x11]
movzx edx, byte [edi + 0x10]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x2c], eax
mov esi, dword [ebp - 0x1c]
add edi, 0xf
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
lea esi, [esi + eax + 1]
cmp dword [ebp - 0x24], edi
je 0x403ba0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [esi + eax + 1]
mov dword [ebp - 0x1c], eax
test byte [0x416010], 8
jne 0x403aa8
movzx ebx, byte [edi + 7]
cmp bl, 0xe7
jbe 0x403920
lea eax, [ebx + 0x12]
cmp al, 1
ja 0x403b10
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strchr]
mov dword [ebp - 0x2c], eax
mov ecx, eax
test eax, eax
jne 0x403bb0
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dbg.HLPFILE_Hash
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
movzx edx, byte [edi + 7]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
not edx
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], 1
and edx, 1
mov dword [esp + 8], 0
mov dword [esp], 0xffffffff
call dbg.HLPFILE_AllocLink
mov dword [esp + 4], 0
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40396b
call sym._wine_dbgstr_an.constprop.0_1
mov ebx, eax
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 7]
mov dword [esp + 0xc], str._02x__02x_02x__s__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_AddHotSpotLinks
mov dword [esp + 4], 0x416010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [esi + eax + 1]
mov dword [ebp - 0x1c], eax
jmp 0x4039f4
test byte [0x416010], 1
je 0x4039bb
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.unknown_hotsport_target_0x_x_n
mov dword [esp + 8], str.HLPFILE_AddHotSpotLinks
mov dword [esp + 4], 0x416010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x4039bb
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dbg.HLPFILE_Hash
mov ecx, dword [ebp - 0x30]
mov edx, ebx
not edx
mov ecx, dword [ecx + 8]
mov dword [esp + 4], eax
and edx, 1
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], 0xffffffff
call dbg.HLPFILE_AllocLink
mov ebx, eax
jmp 0x40396b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x8c]
lea edx, [eax - 1]
mov dword [ebp - 0x20], edx
test edx, edx
js 0x403ca8
add ecx, 1
imul eax, eax, 0x68
mov dword [ebp - 0x38], edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x90]
lea esi, [ecx + eax - 0x5e]
mov ebx, esi
jmp 0x403bf3
sub edi, 1
sub ebx, 0x68
cmp edi, 0xffffffff
je 0x403c60
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x403be8
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
sub ebx, esi
lea edx, [ebx + 1]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
test eax, eax
je 0x403cb4
mov dword [esp + 4], esi
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._memcpy
mov byte [esi + ebx], 0
mov eax, esi
jmp 0x403a37
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x20], 0xffffffff
test byte [0x416010], 4
je 0x403c0d
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x4174e8
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_AddHotSpotLinks
mov dword [esp + 4], 0x416010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x403c0d
cmp dword [ebp - 0x20], 0xffffffff
jne 0x403c0d
jmp 0x403c63
mov eax, dword [ebp - 0x1c]
jmp 0x403a37