Function at 0x4039b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edx
add eax, ecx
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 1]
movzx ebx, byte [eax + 5]
movzx edi, byte [eax + 3]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 6]
movzx edx, dx
shl ecx, 8
mov esi, edx
add ecx, ebx
movzx ebx, byte [eax + 4]
shl esi, 4
shl ecx, 0x10
sub esi, edx
shl ebx, 8
add ebx, edi
movzx ebx, bx
add ecx, ebx
lea ebx, [esi + ecx + 7]
add ebx, eax
test edx, edx
je 0x403c90
mov edi, esi
mov esi, eax
add edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x403ad3
cmp bl, 0xe5
ja 0x403c48
cmp bl, 0xc8
jne 0x403c08
mov dword [esp + 0x10], 0xffffffff
mov ecx, edi
mov edx, 2
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov eax, dword [ebp - 0x20]
call dbg.HLPFILE_AllocLink
mov ebx, eax
test ebx, ebx
je 0x403aba
movzx eax, byte [esi + 0xb]
movzx edx, byte [esi + 0xa]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x20], eax
movzx eax, byte [esi + 0xd]
movzx edx, byte [esi + 0xc]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x24], eax
movzx eax, byte [esi + 0xf]
movzx edx, byte [esi + 0xe]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x28], eax
movzx eax, byte [esi + 0x11]
movzx edx, byte [esi + 0x10]
shl eax, 8
add eax, edx
movzx eax, ax
mov dword [ebx + 0x2c], eax
mov dword [esp], edi
add esi, 0xf
call dword [sym.imp.ucrtbase.dll_strlen]
lea ebx, [edi + eax + 1]
cmp dword [ebp - 0x1c], esi
je 0x403c90
test byte [0x415010], 8
jne 0x403ba0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
lea edi, [ebx + eax + 1]
movzx ebx, byte [esi + 7]
cmp bl, 0xe7
jbe 0x403a20
lea eax, [ebx + 0x12]
cmp al, 1
ja 0x403c08
mov dword [esp + 4], 0x3e
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strchr]
mov dword [ebp - 0x24], eax
mov ecx, eax
test eax, eax
jne 0x403ca0
mov eax, edi
mov ebx, 0xffffffff
mov dword [esp], eax
call dbg.HLPFILE_Hash
mov ecx, dword [ebp - 0x28]
movzx edx, byte [esi + 7]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
not edx
mov dword [esp + 0xc], 1
and edx, 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
mov eax, dword [ebp - 0x20]
call dbg.HLPFILE_AllocLink
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp + 8], ecx
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_HeapFree]
sub esp, 0xc
jmp 0x403a6a
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [ebx + eax + 1]
call sym._wine_dbgstr_an.constprop.0_1
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 9]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 8]
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 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], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x403ae0
test byte [0x415010], 1
je 0x403aba
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], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x403aba
mov dword [esp], edi
call dbg.HLPFILE_Hash
mov ecx, dword [ebp - 0x28]
mov edx, ebx
not edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], 0xffffffff
and edx, 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
mov eax, dword [ebp - 0x20]
call dbg.HLPFILE_AllocLink
mov ebx, eax
jmp 0x403a6a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x8c]
lea ebx, [eax - 1]
mov edx, ebx
test ebx, ebx
js 0x403db9
imul eax, eax, 0x68
lea ebx, [ecx + 1]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ecx + 0x90]
mov dword [ebp - 0x34], esi
mov esi, edx
lea ebx, [ecx + eax - 0x5e]
mov edi, ebx
mov ebx, dword [ebp - 0x2c]
jmp 0x403cef
sub esi, 1
sub edi, 0x68
cmp esi, 0xffffffff
je 0x403d70
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x403ce0
mov edx, esi
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov ebx, edx
mov eax, dword [ebp - 0x24]
sub eax, edi
mov ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x24], eax
sub esp, 0xc
mov eax, edi
test ecx, ecx
je 0x403b2a
mov eax, dword [ebp - 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
jmp 0x403b2a
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov ebx, 0xffffffff
test byte [0x415010], 4
je 0x403d0a
mov eax, dword [ebp - 0x24]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x4164ec
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_AddHotSpotLinks
mov dword [esp + 4], 0x415010
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x403d0a
cmp ebx, 0xffffffff
je 0x403d7b
jmp 0x403d0a