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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov word [ebp - 0xe], bx
test byte [0x10004930], 8
jne 0x10002130
test bx, bx
jne 0x10001ff0
movzx eax, word [ebp - 0xe]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
movzx ebx, bx
mov dword [esp], 0x40
lea eax, [ebx + ebx]
mov dword [esp + 4], eax
mov dword [ebp - 0x1c], eax
call sym._GlobalAlloc16_8
mov word [ebp - 0xe], ax
sub esp, 8
movzx eax, ax
mov dword [esp], eax
mov dword [ebp - 0x28], eax
call sym._GlobalLock16_4
mov dword [ebp - 0x14], eax
sub esp, 4
cmp si, 0xffff
je 0x10002178
lea edx, [ebx*4]
mov dword [esp + 4], 0
movzx esi, si
mov dword [esp + 8], edx
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]
mov edx, dword [sym.imp.user32.dll_GetSystemMetrics]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
mov dword [esp], 0xc
call edx
mov edx, dword [ebp - 0x24]
sub esp, 4
mov dword [ebp - 0x20], eax
mov dword [esp], 0xb
call edx
mov ecx, dword [ebp - 0x20]
sub esp, 4
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_PrivateExtractIconsA]
sub eax, 1
sub esp, 0x20
cmp eax, 0xfffffffd
ja 0x100021d8
mov eax, dword [ebp - 0x1c]
mov esi, ebx
mov ebx, dword [ebp - 0x14]
movzx edi, di
add eax, ebx
mov dword [ebp - 0x14], eax
lea esi, [esi]
nop
mov edx, dword [esi]
mov eax, edi
add esi, 4
add ebx, 2
call dbg.convert_icon_to_16
mov word [ebx - 2], ax
cmp ebx, dword [ebp - 0x14]
jne 0x100020e0
mov ecx, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
movzx eax, word [ebp - 0xe]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
movzx eax, bx
mov dword [esp + 0xc], str.__04x_file__s_start__d_extract__d_n
mov dword [esp + 0x1c], eax
movzx eax, si
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.InternalExtractIcon16
mov dword [esp + 0x14], eax
movzx eax, di
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001fd3
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_PrivateExtractIconsA]
mov ecx, dword [ebp - 0x14]
sub esp, 0x20
mov word [ecx], ax
movzx eax, word [ebp - 0xe]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._GlobalFree16_4
xor eax, eax
mov word [ebp - 0xe], ax
sub esp, 4
jmp 0x100020f8