Function at 0x401430
Capabilities:
Get process heap flags
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x21a8
call fcn.00401090
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0x2184], edx
mov dword [ebp - 0x217c], ecx
mov ebx, eax
lea ecx, [ebp - 0x2178]
mov eax, edx
mov dword [ebp - 0x2174], 0
lea edx, [ebp - 0x2170]
mov dword [ebp - 0x2170], 0xffffffff
mov dword [ebp - 0x216c], 0
call sym._get_link_location.constprop.0
test eax, eax
je 0x401858
mov eax, dword [ebp - 0x2170]
movzx edx, byte [section..data]
cmp eax, 0x19
ja 0x401950
mov ecx, 0x2410800
bt ecx, eax
jae 0x401950
lea eax, [ebp - 0x818]
and edx, 8
mov dword [ebp - 0x2188], eax
jne 0x402180
xor eax, eax
lea edi, [ebp - 0x1818]
mov word [ebp - 0x1818], ax
mov eax, dword [ebx]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0x20]
lea eax, [ebp - 0x1e30]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0x104
mov dword [esp], edi
mov dword [ebp - 0x2180], eax
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x402020
xor eax, eax
lea edi, [ebp - 0x1818]
mov word [ebp - 0x1818], ax
mov eax, dword [ebx]
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0x18]
lea eax, [ebp - 0x1018]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2180]
mov dword [esp + 8], 0x400
mov dword [esp], edi
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x401ec0
mov ecx, dword [ebp - 0x2188]
lea edx, [ebp - 0x1818]
mov eax, ebx
call sym._get_cmdline.constprop.0.isra.0
lea eax, [ebp - 0x2038]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
lea eax, [ebp - 0x1818]
mov dword [esp], eax
mov eax, dword [ebp - 0x2180]
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x401c08
mov eax, dword [ebx]
xor edx, edx
lea edi, [ebp - 0x1818]
mov dword [esp], ebx
mov word [ebp - 0x1818], dx
lea edx, [ebp - 0x2174]
lea esi, [ebp - 0x1c28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
call dword [eax + 0x40]
mov eax, dword [ebp - 0x2180]
sub esp, 0x10
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], edi
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x401ab0
xor edx, edx
cmp word [ebp - 0x2038], 0
mov word [ebp - 0x1a20], dx
jne 0x401680
mov eax, dword [ebx]
lea edx, [ebp - 0x2168]
mov dword [esp], ebx
mov dword [ebp - 0x2168], 0
mov dword [esp + 4], edx
call dword [eax + 0x10]
mov eax, dword [ebp - 0x2168]
sub esp, 8
test eax, eax
je 0x401680
lea ebx, [ebp - 0x2038]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.shell32.dll_SHGetPathFromIDListW]
sub esp, 8
test eax, eax
je 0x401680
test byte [section..data], 8
jne 0x402448
lea esi, [esi]
nop
cmp word [ebp - 0x1c28], 0
mov edx, dword [ebp - 0x2174]
mov ecx, dword [ebp - 0x217c]
je 0x401990
mov eax, esi
call sym._extract_icon.constprop.0
mov ebx, eax
test ebx, ebx
je 0x4019a5
cmp word [ebp - 0x2038], 0
jne 0x402310
mov dword [esp + 0xc], str.winemenubuilder_semaphore
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
sub esp, 0x10
mov dword [ebp - 0x216c], eax
lea eax, [ebp - 0x216c]
mov dword [esp + 0x10], 0x1cff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
sub esp, 0x14
test eax, eax
jne 0x4022d0
mov eax, dword [ebp - 0x2170]
mov edx, dword [ebp - 0x2178]
cmp eax, 0x10
je 0x402360
cmp eax, 0x19
je 0x40236f
lea eax, [ebp - 0x1a20]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1e30]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2184]
mov dword [esp], 0
mov ecx, eax
call sym._write_menu_entry
test eax, eax
mov dword [esp + 8], 0
sete al
sete byte [ebp - 0x2180]
movzx eax, al
mov dword [esp + 4], 1
mov esi, eax
mov eax, dword [ebp - 0x216c]
xor esi, 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
sub esp, 0xc
mov eax, dword [ebp - 0x216c]
test eax, eax
je 0x4017c1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2178]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 0x217c]
sub esp, 0xc
test ebx, ebx
jne 0x401848
cmp byte [ebp - 0x2180], 0
je 0x401848
test byte [section..data], 2
je 0x401848
mov dword [esp + 0xc], str.failed_to_build_the_menu_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 1
test byte [section..data], 4
je 0x401848
mov eax, dword [ebp - 0x2184]
shr eax, 0x10
je 0x4023f8
mov ebx, dword [ebp - 0x2184]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40240f
movzx eax, word [ebx]
test ax, ax
je 0x402e51
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x4018b0
mov ecx, 0x224c
mov edi, dword [ebp - 0x2184]
lea ebx, [ebp - 0x816]
lea esi, [ebp - 0x6f6]
mov word [ebp - 0x818], cx
jmp 0x401918
cmp ax, 9
je 0x402b68
cmp ax, 0xa
jne 0x402af6
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea ecx, [edx - 1]
test edx, edx
jle 0x402c60
cmp ebx, esi
ja 0x402c60
movzx eax, word [edi]
mov edx, ecx
add edi, 2
cmp ax, 0xd
je 0x402ad8
jbe 0x4018e0
cmp ax, 0x22
je 0x402b50
cmp ax, 0x5c
jne 0x402ae9
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
jmp 0x401900
and edx, 4
mov esi, 1
je 0x401848
mov dword [esp + 0xc], str.Not_under_desktop_or_start_menu._Ignoring._n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401848
lea eax, [ebp - 0x2038]
call sym._extract_icon.constprop.0
mov ebx, eax
test ebx, ebx
jne 0x4016ab
mov edx, dword [ebp - 0x217c]
movzx eax, byte [section..data]
test edx, edx
jne 0x402ab0
test al, 2
je 0x4016ab
cmp word [ebp - 0x1c28], 0
lea eax, [ebp - 0x2038]
cmove esi, eax
mov eax, esi
shr eax, 0x10
je 0x402e78
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402c02
movzx eax, word [esi]
test ax, ax
je 0x402f5b
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x401a10
mov edi, 0x224c
mov dword [ebp - 0x2180], ebx
lea ecx, [ebp - 0x2162]
mov word [ebp - 0x2164], di
jmp 0x401a7e
cmp ax, 9
je 0x402d40
cmp ax, 0xa
jne 0x402cbd
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x402bd0
lea eax, [ebp - 0x2042]
cmp ecx, eax
ja 0x402bd0
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x402d28
jbe 0x401a40
cmp ax, 0x22
je 0x402d10
cmp ax, 0x5c
jne 0x402cb0
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401a60
mov eax, esi
shr eax, 0x10
je 0x402a90
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x401bd4
movzx eax, word [ebp - 0x1c28]
test ax, ax
je 0x401ba7
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x401af0
mov ecx, 0x224c
lea edi, [ebp - 0x18fe]
mov dword [ebp - 0x2180], esi
mov word [ebp - 0x1a20], cx
lea ecx, [ebp - 0x1a1e]
mov dword [ebp - 0x218c], edi
mov dword [ebp - 0x2190], ebx
jmp 0x401b72
cmp ax, 9
je 0x402548
cmp ax, 0xa
jne 0x4025ee
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x218c]
ja 0x4029b0
test edx, edx
jle 0x4029b0
mov eax, dword [ebp - 0x2180]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x2180], 2
cmp ax, 0xd
je 0x402560
jbe 0x401b30
cmp ax, 0x22
je 0x402640
cmp ax, 0x5c
jne 0x4025e1
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b50
mov edi, 0x224c
mov byte [ebp - 0x1a1e], 0x22
lea ecx, [ebp - 0x1a1e]
mov word [ebp - 0x1a20], di
lea eax, [ecx + 1]
lea ecx, [ebp - 0x1a20]
mov byte [eax], 0
mov dword [esp], ecx
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.icon_file__:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401614
lea eax, [ebp - 0x2038]
shr eax, 0x10
je 0x402a00
lea eax, [ebp - 0x2038]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x401d2a
movzx eax, word [ebp - 0x2038]
test ax, ax
je 0x401cfd
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x2036], 0
jne 0x401c50
mov edi, 0x224c
mov dword [ebp - 0x2190], ebx
lea ecx, [ebp - 0x1a1e]
lea esi, [ebp - 0x2038]
mov word [ebp - 0x1a20], di
lea edi, [ebp - 0x18fe]
mov dword [ebp - 0x218c], edi
jmp 0x401ccc
cmp ax, 9
je 0x402820
cmp ax, 0xa
jne 0x40272e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x218c]
ja 0x402950
test edx, edx
jle 0x402950
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x402710
jbe 0x401c90
cmp ax, 0x22
je 0x402780
cmp ax, 0x5c
jne 0x402721
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x401cb0
mov esi, 0x224c
mov byte [ebp - 0x1a1e], 0x22
lea ecx, [ebp - 0x1a1e]
mov word [ebp - 0x1a20], si
lea eax, [ecx + 1]
lea ecx, [ebp - 0x1a20]
mov byte [eax], 0
mov dword [esp], ecx
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path_______:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [section..data], 8
je 0x4015b7
mov eax, dword [ebp - 0x2188]
shr eax, 0x10
je 0x4029e0
mov esi, dword [ebp - 0x2188]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x401e8a
movzx eax, word [ebp - 0x818]
test ax, ax
je 0x401e5d
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x401db0
mov ecx, 0x224c
lea edi, [ebp - 0x18fe]
mov dword [ebp - 0x2190], ebx
mov esi, dword [ebp - 0x2188]
mov word [ebp - 0x1a20], cx
lea ecx, [ebp - 0x1a1e]
mov dword [ebp - 0x218c], edi
jmp 0x401e2c
cmp ax, 9
je 0x402838
cmp ax, 0xa
jne 0x40265e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x218c]
ja 0x402920
test edx, edx
jle 0x402920
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x402808
jbe 0x401df0
cmp ax, 0x22
je 0x4026b0
cmp ax, 0x5c
jne 0x402651
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401e10
mov eax, 0x224c
mov byte [ebp - 0x1a1e], 0x22
lea ecx, [ebp - 0x1a1e]
mov word [ebp - 0x1a20], ax
lea eax, [ecx + 1]
lea ecx, [ebp - 0x1a20]
mov byte [eax], 0
mov dword [esp], ecx
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.args_______:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4015b7
lea eax, [ebp - 0x1018]
shr eax, 0x10
je 0x402a30
lea eax, [ebp - 0x1018]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x401fea
movzx eax, word [ebp - 0x1018]
test ax, ax
je 0x401fbd
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x1016], 0
jne 0x401f10
mov ecx, 0x224c
lea edi, [ebp - 0x6f6]
mov dword [ebp - 0x2190], ebx
lea esi, [ebp - 0x1018]
mov word [ebp - 0x818], cx
lea ecx, [ebp - 0x816]
mov dword [ebp - 0x218c], edi
jmp 0x401f8c
cmp ax, 9
je 0x4026f8
cmp ax, 0xa
jne 0x40279e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x218c]
ja 0x402980
test edx, edx
jle 0x402980
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x402530
jbe 0x401f50
cmp ax, 0x22
je 0x4027f0
cmp ax, 0x5c
jne 0x402791
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x401f70
mov eax, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], ax
lea eax, [ecx + 1]
mov byte [eax], 0
mov eax, dword [ebp - 0x2188]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.description:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401571
lea eax, [ebp - 0x1e30]
shr eax, 0x10
je 0x402a60
lea eax, [ebp - 0x1e30]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40214a
movzx eax, word [ebp - 0x1e30]
test ax, ax
je 0x40211d
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x1e2e], 0
jne 0x402070
mov edi, 0x224c
mov dword [ebp - 0x2190], ebx
lea ecx, [ebp - 0x816]
lea esi, [ebp - 0x1e30]
mov word [ebp - 0x818], di
lea edi, [ebp - 0x6f6]
mov dword [ebp - 0x218c], edi
jmp 0x4020ec
cmp ax, 9
je 0x4026e0
cmp ax, 0xa
jne 0x40257e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x218c]
ja 0x4028f8
test edx, edx
jle 0x4028f8
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x4026c8
jbe 0x4020b0
cmp ax, 0x22
je 0x4025d0
cmp ax, 0x5c
jne 0x402571
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4020d0
mov esi, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], si
lea eax, [ecx + 1]
mov byte [eax], 0
mov eax, dword [ebp - 0x2188]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.workdir____:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40151e
mov esi, dword [ebp - 0x2178]
test esi, esi
je 0x402c98
mov eax, esi
shr eax, 0x10
je 0x402c30
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x4022a2
cmp word [esi], 0
je 0x402d51
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x4021c8
mov ecx, 0x224c
lea eax, [ebp - 0x6f6]
mov dword [ebp - 0x2188], ebx
mov word [ebp - 0x818], cx
lea ecx, [ebp - 0x816]
mov dword [ebp - 0x2180], eax
jmp 0x402231
cmp ax, 9
je 0x4028c8
cmp ax, 0xa
jne 0x402856
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, dword [ebp - 0x2180]
ja 0x402268
test edx, edx
jle 0x402268
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x4028e0
jbe 0x402200
cmp ax, 0x22
je 0x4028b0
cmp ax, 0x5c
jne 0x402849
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x402220
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2188]
test eax, eax
jle 0x402d6a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
mov dword [ebp - 0x2188], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Link_______:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4014c6
mov byte [ebp - 0x2180], 1
xor esi, esi
test byte [section..data], 2
je 0x4017ab
mov dword [esp + 0xc], str.failed_wait_for_semaphore_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4017ab
lea eax, [ebp - 0x2038]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
mov esi, eax
test eax, eax
je 0x4016b9
xor eax, eax
lea ecx, [ebp - 0x1a20]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x402338
mov dword [esp], ecx
call dword [sym.imp.user32.dll_CharLowerW]
sub esp, 4
jmp 0x4016b9
cmp eax, 0x19
je 0x40236f
cmp word [ebp - 0x2038], 0
jne 0x4023b0
lea eax, [ebp - 0x1a20]
mov dword [esp + 0x10], ebx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1e30]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2184]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._write_desktop_entry
jmp 0x401775
lea eax, [ebp - 0x1a20]
mov dword [esp + 0x10], ebx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1e30]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2188]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2038]
mov dword [esp], eax
xor eax, eax
call sym._write_desktop_entry
jmp 0x401775
movzx edx, word [ebp - 0x2184]
mov dword [esp], str._04x
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf.constprop.0
mov dword [esp + 0x10], eax
mov esi, 1
mov dword [esp + 0xc], str.Unknown_link_location__s._Ignoring._n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401848
mov eax, ebx
shr eax, 0x10
je 0x402f39
lea eax, [ebp - 0x2038]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402df6
movzx eax, word [ebp - 0x2038]
test ax, ax
je 0x402f84
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x2036], 0
jne 0x402490
mov ebx, 0x224c
lea ecx, [ebp - 0x2162]
lea edi, [ebp - 0x2038]
mov word [ebp - 0x2164], bx
jmp 0x4024fe
cmp ax, 9
je 0x402e90
cmp ax, 0xa
jne 0x402ec6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x2042]
lea ebx, [edx - 1]
cmp ecx, eax
ja 0x402dca
test edx, edx
jle 0x402dca
movzx eax, word [edi]
mov edx, ebx
add edi, 2
cmp ax, 0xd
je 0x402ea8
jbe 0x4024c0
cmp ax, 0x22
je 0x402f20
cmp ax, 0x5c
jne 0x402eb9
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4024e0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401f70
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b50
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b50
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402ba0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4020d0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x4020d0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b90
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401b50
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b50
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b80
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401e10
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401e10
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4020d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4020d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401f70
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401cb0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402bc0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401cb0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401cb0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402bb0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401f70
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401f70
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401e10
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401cb0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401e10
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402c50
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x402220
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x402220
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402220
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402220
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2190]
test edi, edi
jle 0x402136
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
jmp 0x402139
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2190]
test edi, edi
jle 0x401e76
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
jmp 0x401e79
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2190]
test edi, edi
jle 0x401d16
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
jmp 0x401d19
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2190]
test edi, edi
jle 0x401fd6
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
jmp 0x401fd9
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2190]
test edi, edi
jle 0x401bc0
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
jmp 0x401bc3
movzx eax, word [ebp - 0x2188]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401e8a
lea eax, [ebp - 0x2038]
mov dword [esp], str._04x
mov dword [ebp - 0x218c], eax
movzx eax, word [ebp - 0x218c]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401d2a
lea eax, [ebp - 0x1018]
mov dword [esp], str._04x
mov dword [ebp - 0x218c], eax
movzx eax, word [ebp - 0x218c]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401fea
lea eax, [ebp - 0x1e30]
mov dword [esp], str._04x
mov dword [ebp - 0x218c], eax
movzx eax, word [ebp - 0x218c]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40214a
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401bd4
test al, 4
jne 0x402e28
mov eax, dword [ebp - 0x216c]
test eax, eax
je 0x402d78
mov byte [ebp - 0x2180], 1
xor esi, esi
jmp 0x4017b5
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x401900
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x402ca8
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ebx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
jmp 0x401900
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x401900
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x401900
mov byte [ecx], al
inc ecx
jmp 0x401e10
mov byte [ecx], al
inc ecx
jmp 0x401b50
mov byte [ecx], al
inc ecx
jmp 0x4020d0
mov byte [ecx], al
inc ecx
jmp 0x401f70
mov byte [ecx], al
inc ecx
jmp 0x401cb0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2180]
test edi, edi
jle 0x402f74
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x2164]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_extract_icon_from__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4016ab
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x4022a2
mov byte [ecx], al
inc ecx
jmp 0x402220
mov byte [ebx], 0x22
test ecx, ecx
jle 0x402e6a
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x40240f
mov edx, str._null_
jmp 0x4022a2
mov byte [ebx], al
inc ebx
jmp 0x401900
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402f31
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401a60
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401a60
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401a60
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401a60
mov eax, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], ax
lea eax, [ecx + 1]
jmp 0x402289
mov dword [esp + 8], 0
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2178]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
xor esi, esi
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x401848
mov byte [ecx], 0x22
test ebx, ebx
jle 0x402f9a
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x2164]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.pidl_path__:__s_n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401680
mov dword [esp + 0xc], str.Unable_to_extract_icon__deferring._n
mov dword [esp + 8], str.InvokeShellLinker
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x402ab8
mov eax, 0x224c
mov byte [ebp - 0x816], 0x22
lea ebx, [ebp - 0x816]
mov word [ebp - 0x818], ax
lea eax, [ebx + 1]
jmp 0x402c7b
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402c02
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4024e0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4024e0
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x402f7c
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefGCC:__GNU__10.3.0]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefGCC:__GNU__10.3.0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4024e0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4024e0
mov byte [ecx], al
inc ecx
jmp 0x401a60
mov dword [ebp - 0x2180], ebx
movzx eax, word [ebp - 0x2180]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402df6
mov eax, 0x224c
mov byte [ebp - 0x2162], 0x22
lea ecx, [ebp - 0x2162]
mov word [ebp - 0x2164], ax
lea eax, [ecx + 1]
jmp 0x402bf1
mov byte [ecx], al
inc ecx
jmp 0x4024e0
mov word [ebp - 0x2164], 0x224c
lea ecx, [ebp - 0x2162]
mov byte [ebp - 0x2162], 0x22
lea eax, [ecx + 1]
jmp 0x402de5