Function at 0x404cd0
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 - 0x20], eax
mov dword [ebp - 0x1c], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x30], eax
nop
mov eax, dword [esi + 4]
cmp eax, 4
je 0x404d10
ja 0x404e68
cmp eax, 1
je 0x404e6d
cmp eax, 2
jne 0x404ea0
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x20]
lea edx, [esi + 0xc]
shr ecx, 1
call sym._append_path
mov dword [ebp - 0x24], eax
mov edi, eax
test eax, eax
je 0x404e58
mov eax, dword [0x41c25c]
test eax, eax
je 0x404edb
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov esi, ebx
jmp 0x404d55
inc esi
cmp esi, dword [0x41c25c]
jae 0x404ed8
mov eax, dword [0x41c260]
mov dword [esp + 4], edi
lea ebx, [esi*4]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404d48
mov eax, dword [0x41c260]
mov edi, ebx
mov ebx, esi
mov esi, dword [ebp - 0x28]
mov edx, dword [eax + edi]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyIcon]
mov edx, dword [ebp - 0x1c]
sub esp, 4
mov eax, dword [edx]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1c], eax
call eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub esp, 0xc
mov eax, dword [edx + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov eax, dword [0x41c25c]
sub esp, 0xc
dec eax
mov dword [0x41c25c], eax
jne 0x404f08
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov dword [ebp - 0x1c], 1
sub esp, 0xc
lea esi, [esi]
nop
mov eax, dword [esi]
test eax, eax
je 0x404e91
add esi, eax
jmp 0x404cf0
cmp eax, 5
jne 0x404ea0
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x20]
lea edx, [esi + 0xc]
shr ecx, 1
call sym._add_launcher
test eax, eax
mov eax, 1
cmove eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
test eax, eax
jne 0x404e5e
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x412024], 4
je 0x404e58
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unexpected_action__lu_n
mov dword [esp + 8], str.process_changes
mov dword [esp + 4], 0x412024
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x404e58
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp + 8], 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 0x404e58
mov ecx, dword [0x41c260]
sub eax, ebx
shl eax, 2
mov dword [esp + 8], eax
lea eax, [ecx + ebx*4 + 4]
add ecx, edi
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_memmove]
jmp 0x404e26