Function at 0x404ce0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x4c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x30], eax
nop
mov eax, dword [esi + 4]
cmp eax, 4
je 0x404d20
ja 0x404e70
cmp eax, 1
je 0x404e75
cmp eax, 2
jne 0x404ea8
mov ecx, dword [esi + 8]
lea edx, [esi + 0xc]
mov eax, dword [ebp - 0x24]
shr ecx, 1
call sym._append_path
test eax, eax
mov ebx, eax
je 0x404e60
mov eax, dword [0x41d25c]
test eax, eax
je 0x404ee6
mov dword [ebp - 0x1c], ebx
xor edx, edx
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x28], esi
mov ebx, edx
jmp 0x404d6d
inc ebx
cmp ebx, dword [0x41d25c]
jae 0x404ee0
mov eax, dword [ebp - 0x1c]
lea esi, [ebx*4]
mov dword [esp + 4], eax
mov eax, dword [0x41d260]
mov eax, dword [eax + esi]
mov eax, dword [eax]
mov dword [esp], eax
call edi
test eax, eax
jne 0x404d60
mov dword [ebp - 0x2c], ebx
mov eax, dword [0x41d260]
mov edi, esi
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov edi, dword [eax + edi]
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._DestroyIcon_4
mov eax, dword [edi]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x20], ecx
sub esp, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1c], eax
call eax
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x20]
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov eax, dword [0x41d25c]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
dec eax
mov dword [0x41d25c], eax
jne 0x404f10
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov dword [ebp - 0x20], 1
sub esp, 0xc
lea esi, [esi]
mov eax, dword [esi]
test eax, eax
je 0x404e99
add esi, eax
jmp 0x404d00
cmp eax, 5
jne 0x404ea8
mov ecx, dword [esi + 8]
lea edx, [esi + 0xc]
mov eax, dword [ebp - 0x24]
shr ecx, 1
call sym._add_launcher
test eax, eax
mov eax, 1
cmove eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
test eax, eax
jne 0x404e66
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x413020], 4
je 0x404e60
mov ecx, str.unexpected_action__lu_n
mov ebx, str.process_changes
mov dword [esp + 0x10], eax
mov edi, 0x413020
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x404e60
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
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 0x404e60
mov ecx, dword [0x41d260]
sub eax, edx
shl eax, 2
mov dword [esp + 8], eax
lea eax, [ecx + edx*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
add eax, ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
jmp 0x404e31