Function at 0x401410
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x218c
call fcn.00401088
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0x2178], edx
mov dword [ebp - 0x2170], ecx
mov ebx, eax
lea ecx, [ebp - 0x216c]
mov eax, edx
mov dword [ebp - 0x2168], 0
lea edx, [ebp - 0x2164]
mov dword [ebp - 0x2164], 0xffffffff
mov dword [ebp - 0x2160], 0
call sym._get_link_location.constprop.0
test eax, eax
je 0x401800
mov eax, dword [ebp - 0x2164]
movzx edx, byte [section..data]
cmp eax, 0x19
ja 0x401900
mov ecx, 0x2410800
bt ecx, eax
jae 0x401900
lea eax, [ebp - 0x80c]
and edx, 8
mov dword [ebp - 0x217c], eax
jne 0x402130
xor eax, eax
lea edi, [ebp - 0x180c]
mov word [ebp - 0x180c], 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 - 0x1e24]
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 - 0x2174], eax
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x401fd0
xor eax, eax
lea edi, [ebp - 0x180c]
mov word [ebp - 0x180c], 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 - 0x100c]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2174]
mov dword [esp + 8], 0x400
mov dword [esp], edi
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x401e70
mov ecx, dword [ebp - 0x217c]
lea edx, [ebp - 0x180c]
mov eax, ebx
call sym._get_cmdline.constprop.0.isra.0
lea eax, [ebp - 0x202c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
lea eax, [ebp - 0x180c]
mov dword [esp], eax
mov eax, dword [ebp - 0x2174]
call eax
sub esp, 0xc
test byte [section..data], 8
jne 0x401bb8
mov eax, dword [ebx]
xor edx, edx
lea edi, [ebp - 0x180c]
mov dword [esp], ebx
mov word [ebp - 0x180c], dx
lea edx, [ebp - 0x2168]
lea esi, [ebp - 0x1c1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
call dword [eax + 0x40]
mov eax, dword [ebp - 0x2174]
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 0x401a60
xor edx, edx
cmp word [ebp - 0x202c], 0
mov word [ebp - 0x1a14], dx
jne 0x401660
mov eax, dword [ebx]
lea edx, [ebp - 0x215c]
mov dword [esp], ebx
mov dword [ebp - 0x215c], 0
mov dword [esp + 4], edx
call dword [eax + 0x10]
mov eax, dword [ebp - 0x215c]
sub esp, 8
test eax, eax
je 0x401660
lea ebx, [ebp - 0x202c]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.shell32.dll_SHGetPathFromIDListW]
sub esp, 8
test eax, eax
je 0x401660
test byte [section..data], 8
jne 0x4023f8
lea esi, cs:[esi]
nop
cmp word [ebp - 0x1c1c], 0
mov edx, dword [ebp - 0x2168]
mov ecx, dword [ebp - 0x2170]
je 0x401940
mov eax, esi
call sym._extract_icon.constprop.0
mov ebx, eax
test ebx, ebx
je 0x401955
cmp word [ebp - 0x202c], 0
jne 0x4022c0
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 - 0x2160], eax
lea eax, [ebp - 0x2160]
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 0x402280
mov eax, dword [ebp - 0x2164]
mov edx, dword [ebp - 0x216c]
cmp eax, 0x10
je 0x402310
cmp eax, 0x19
je 0x40231f
lea eax, [ebp - 0x1a14]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1e24]
mov dword [esp + 8], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2178]
mov dword [esp], 0
mov ecx, eax
call sym._write_menu_entry
test eax, eax
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 1
mov edi, eax
sete al
movzx eax, al
mov esi, eax
mov eax, dword [ebp - 0x2160]
xor esi, 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
sub esp, 0xc
mov eax, dword [ebp - 0x2160]
test eax, eax
je 0x40179f
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov eax, dword [ebp - 0x216c]
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 0x2170]
test ebx, ebx
jne 0x4017f2
mov eax, edi
test al, al
je 0x4017f2
test byte [section..data], 2
je 0x4017f2
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 0x4017f2
mov eax, dword [ebp - 0x2178]
shr eax, 0x10
je 0x4023a8
mov ebx, dword [ebp - 0x2178]
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 0x4023bf
movzx eax, word [ebx]
test ax, ax
je 0x402dc9
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x401858
mov ecx, 0x224c
mov edi, dword [ebp - 0x2178]
lea ebx, [ebp - 0x80a]
lea esi, [ebp - 0x6ea]
mov word [ebp - 0x80c], cx
jmp 0x4018c8
cmp ax, 9
je 0x402b18
cmp ax, 0xa
jne 0x402aa6
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea esi, cs:[esi]
lea ecx, [edx - 1]
test edx, edx
jle 0x402c10
cmp ebx, esi
ja 0x402c10
movzx eax, word [edi]
mov edx, ecx
add edi, 2
cmp ax, 0xd
je 0x402a88
jbe 0x401888
cmp ax, 0x22
je 0x402b00
cmp ax, 0x5c
jne 0x402a99
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
jmp 0x4018b0
and edx, 4
mov esi, 1
je 0x4017f2
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 0x4017f2
lea eax, [ebp - 0x202c]
call sym._extract_icon.constprop.0
mov ebx, eax
test ebx, ebx
jne 0x40168b
mov edx, dword [ebp - 0x2170]
movzx eax, byte [section..data]
test edx, edx
jne 0x402a60
test al, 2
je 0x40168b
cmp word [ebp - 0x1c1c], 0
lea eax, [ebp - 0x202c]
cmove esi, eax
mov eax, esi
shr eax, 0x10
je 0x402df0
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 0x402bb2
movzx eax, word [esi]
test ax, ax
je 0x402edb
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x4019c0
mov edi, 0x224c
mov dword [ebp - 0x2174], ebx
lea ecx, [ebp - 0x2156]
mov word [ebp - 0x2158], di
jmp 0x401a2e
cmp ax, 9
je 0x402cf0
cmp ax, 0xa
jne 0x402c6d
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x402b80
lea eax, [ebp - 0x2036]
cmp ecx, eax
ja 0x402b80
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x402cd8
jbe 0x4019f0
cmp ax, 0x22
je 0x402cc0
cmp ax, 0x5c
jne 0x402c60
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401a10
mov eax, esi
shr eax, 0x10
je 0x402a40
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 0x401b84
movzx eax, word [ebp - 0x1c1c]
test ax, ax
je 0x401b57
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x401aa0
mov ecx, 0x224c
lea edi, [ebp - 0x18f2]
mov dword [ebp - 0x2174], esi
mov word [ebp - 0x1a14], cx
lea ecx, [ebp - 0x1a12]
mov dword [ebp - 0x2180], edi
mov dword [ebp - 0x2184], ebx
jmp 0x401b22
cmp ax, 9
je 0x4024f8
cmp ax, 0xa
jne 0x40259e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x2180]
ja 0x402960
test edx, edx
jle 0x402960
mov eax, dword [ebp - 0x2174]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x2174], 2
cmp ax, 0xd
je 0x402510
jbe 0x401ae0
cmp ax, 0x22
je 0x4025f0
cmp ax, 0x5c
jne 0x402591
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b00
mov edi, 0x224c
mov byte [ebp - 0x1a12], 0x22
lea ecx, [ebp - 0x1a12]
mov word [ebp - 0x1a14], di
lea eax, [ecx + 1]
lea ecx, [ebp - 0x1a14]
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 0x4015f4
lea eax, [ebp - 0x202c]
shr eax, 0x10
je 0x4029b0
lea eax, [ebp - 0x202c]
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 0x401cda
movzx eax, word [ebp - 0x202c]
test ax, ax
je 0x401cad
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x202a], 0
jne 0x401c00
mov edi, 0x224c
mov dword [ebp - 0x2184], ebx
lea ecx, [ebp - 0x1a12]
lea esi, [ebp - 0x202c]
mov word [ebp - 0x1a14], di
lea edi, [ebp - 0x18f2]
mov dword [ebp - 0x2180], edi
jmp 0x401c7c
cmp ax, 9
je 0x4027d0
cmp ax, 0xa
jne 0x4026de
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x2180]
ja 0x402900
test edx, edx
jle 0x402900
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x4026c0
jbe 0x401c40
cmp ax, 0x22
je 0x402730
cmp ax, 0x5c
jne 0x4026d1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x401c60
mov esi, 0x224c
mov byte [ebp - 0x1a12], 0x22
lea ecx, [ebp - 0x1a12]
mov word [ebp - 0x1a14], si
lea eax, [ecx + 1]
lea ecx, [ebp - 0x1a14]
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 0x401597
mov eax, dword [ebp - 0x217c]
shr eax, 0x10
je 0x402990
mov esi, dword [ebp - 0x217c]
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 0x401e3a
movzx eax, word [ebp - 0x80c]
test ax, ax
je 0x401e0d
lea esi, cs:[esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x401d60
mov ecx, 0x224c
lea edi, [ebp - 0x18f2]
mov dword [ebp - 0x2184], ebx
mov esi, dword [ebp - 0x217c]
mov word [ebp - 0x1a14], cx
lea ecx, [ebp - 0x1a12]
mov dword [ebp - 0x2180], edi
jmp 0x401ddc
cmp ax, 9
je 0x4027e8
cmp ax, 0xa
jne 0x40260e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x2180]
ja 0x4028d0
test edx, edx
jle 0x4028d0
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x4027b8
jbe 0x401da0
cmp ax, 0x22
je 0x402660
cmp ax, 0x5c
jne 0x402601
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401dc0
mov eax, 0x224c
mov byte [ebp - 0x1a12], 0x22
lea ecx, [ebp - 0x1a12]
mov word [ebp - 0x1a14], ax
lea eax, [ecx + 1]
lea ecx, [ebp - 0x1a14]
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 0x401597
lea eax, [ebp - 0x100c]
shr eax, 0x10
je 0x4029e0
lea eax, [ebp - 0x100c]
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 0x401f9a
movzx eax, word [ebp - 0x100c]
test ax, ax
je 0x401f6d
lea esi, cs:[esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x100a], 0
jne 0x401ec0
mov ecx, 0x224c
lea edi, [ebp - 0x6ea]
mov dword [ebp - 0x2184], ebx
lea esi, [ebp - 0x100c]
mov word [ebp - 0x80c], cx
lea ecx, [ebp - 0x80a]
mov dword [ebp - 0x2180], edi
jmp 0x401f3c
cmp ax, 9
je 0x4026a8
cmp ax, 0xa
jne 0x40274e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x2180]
ja 0x402930
test edx, edx
jle 0x402930
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x4024e0
jbe 0x401f00
cmp ax, 0x22
je 0x4027a0
cmp ax, 0x5c
jne 0x402741
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x401f20
mov eax, 0x224c
mov byte [ebp - 0x80a], 0x22
lea ecx, [ebp - 0x80a]
mov word [ebp - 0x80c], ax
lea eax, [ecx + 1]
mov byte [eax], 0
mov eax, dword [ebp - 0x217c]
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 0x401551
lea eax, [ebp - 0x1e24]
shr eax, 0x10
je 0x402a10
lea eax, [ebp - 0x1e24]
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 0x4020fa
movzx eax, word [ebp - 0x1e24]
test ax, ax
je 0x4020cd
lea esi, cs:[esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x1e22], 0
jne 0x402020
mov edi, 0x224c
mov dword [ebp - 0x2184], ebx
lea ecx, [ebp - 0x80a]
lea esi, [ebp - 0x1e24]
mov word [ebp - 0x80c], di
lea edi, [ebp - 0x6ea]
mov dword [ebp - 0x2180], edi
jmp 0x40209c
cmp ax, 9
je 0x402690
cmp ax, 0xa
jne 0x40252e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x2180]
ja 0x4028a8
test edx, edx
jle 0x4028a8
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x402678
jbe 0x402060
cmp ax, 0x22
je 0x402580
cmp ax, 0x5c
jne 0x402521
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x402080
mov esi, 0x224c
mov byte [ebp - 0x80a], 0x22
lea ecx, [ebp - 0x80a]
mov word [ebp - 0x80c], si
lea eax, [ecx + 1]
mov byte [eax], 0
mov eax, dword [ebp - 0x217c]
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 0x4014fe
mov esi, dword [ebp - 0x216c]
test esi, esi
je 0x402c48
mov eax, esi
shr eax, 0x10
je 0x402be0
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 0x402252
cmp word [esi], 0
je 0x402d01
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x402178
mov ecx, 0x224c
lea eax, [ebp - 0x6ea]
mov dword [ebp - 0x217c], ebx
mov word [ebp - 0x80c], cx
lea ecx, [ebp - 0x80a]
mov dword [ebp - 0x2174], eax
jmp 0x4021e1
cmp ax, 9
je 0x402878
cmp ax, 0xa
jne 0x402806
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, dword [ebp - 0x2174]
ja 0x402218
test edx, edx
jle 0x402218
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x402890
jbe 0x4021b0
cmp ax, 0x22
je 0x402860
cmp ax, 0x5c
jne 0x4027f9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4021d0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x217c]
test eax, eax
jle 0x402d1a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
mov dword [ebp - 0x217c], 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 0x4014a6
xor esi, esi
mov edi, 1
test byte [section..data], 2
je 0x401789
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 0x401789
lea eax, [ebp - 0x202c]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
mov esi, eax
test eax, eax
je 0x401699
xor eax, eax
lea ecx, [ebp - 0x1a14]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4022e8
mov dword [esp], ecx
call dword [sym.imp.user32.dll_CharLowerW]
sub esp, 4
jmp 0x401699
cmp eax, 0x19
je 0x40231f
cmp word [ebp - 0x202c], 0
jne 0x402360
lea eax, [ebp - 0x1a14]
mov dword [esp + 0x10], ebx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1e24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2178]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._write_desktop_entry
jmp 0x401755
lea eax, [ebp - 0x1a14]
mov dword [esp + 0x10], ebx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1e24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x217c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x202c]
mov dword [esp], eax
xor eax, eax
call sym._write_desktop_entry
jmp 0x401755
movzx edx, word [ebp - 0x2178]
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 0x4017f2
mov eax, ebx
shr eax, 0x10
je 0x402eb9
lea eax, [ebp - 0x202c]
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 0x402d6a
movzx eax, word [ebp - 0x202c]
test ax, ax
je 0x402f04
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x202a], 0
jne 0x402440
mov ebx, 0x224c
lea ecx, [ebp - 0x2156]
lea edi, [ebp - 0x202c]
mov word [ebp - 0x2158], bx
jmp 0x4024ae
cmp ax, 9
je 0x402e10
cmp ax, 0xa
jne 0x402e46
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x2036]
lea ebx, [edx - 1]
cmp ecx, eax
ja 0x402d3e
test edx, edx
jle 0x402d3e
movzx eax, word [edi]
mov edx, ebx
add edi, 2
cmp ax, 0xd
je 0x402e28
jbe 0x402470
cmp ax, 0x22
je 0x402ea0
cmp ax, 0x5c
jne 0x402e39
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402490
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401f20
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b00
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b00
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b50
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 0x402080
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x402080
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b40
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 0x401b00
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401b00
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b30
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 0x401dc0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401dc0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402080
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402080
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401f20
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401c60
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b70
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 0x401c60
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401c60
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402b60
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 0x401f20
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x401f20
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401dc0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401c60
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401dc0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402c00
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 0x4021d0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x4021d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4021d0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4021d0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2184]
test edi, edi
jle 0x4020e6
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
jmp 0x4020e9
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2184]
test edi, edi
jle 0x401e26
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
jmp 0x401e29
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2184]
test edi, edi
jle 0x401cc6
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
jmp 0x401cc9
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2184]
test edi, edi
jle 0x401f86
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
jmp 0x401f89
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2184]
test edi, edi
jle 0x401b70
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
jmp 0x401b73
movzx eax, word [ebp - 0x217c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401e3a
lea eax, [ebp - 0x202c]
mov dword [esp], str._04x
mov dword [ebp - 0x2180], eax
movzx eax, word [ebp - 0x2180]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401cda
lea eax, [ebp - 0x100c]
mov dword [esp], str._04x
mov dword [ebp - 0x2180], eax
movzx eax, word [ebp - 0x2180]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401f9a
lea eax, [ebp - 0x1e24]
mov dword [esp], str._04x
mov dword [ebp - 0x2180], eax
movzx eax, word [ebp - 0x2180]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4020fa
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401b84
test al, 4
jne 0x402da0
mov eax, dword [ebp - 0x2160]
test eax, eax
je 0x402d28
xor esi, esi
mov edi, 1
jmp 0x401793
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4018b0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x402c58
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 0x4018b0
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4018b0
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x4018b0
mov byte [ecx], al
inc ecx
jmp 0x401dc0
mov byte [ecx], al
inc ecx
jmp 0x401b00
mov byte [ecx], al
inc ecx
jmp 0x402080
mov byte [ecx], al
inc ecx
jmp 0x401f20
mov byte [ecx], al
inc ecx
jmp 0x401c60
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2174]
test edi, edi
jle 0x402ef4
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x2158]
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 0x40168b
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x402252
mov byte [ecx], al
inc ecx
jmp 0x4021d0
mov byte [ebx], 0x22
test ecx, ecx
jle 0x402de2
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x4023bf
mov edx, str._null_
jmp 0x402252
mov byte [ebx], al
inc ebx
jmp 0x4018b0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402eb1
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 0x401a10
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401a10
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401a10
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x401a10
mov eax, 0x224c
mov byte [ebp - 0x80a], 0x22
lea ecx, [ebp - 0x80a]
mov word [ebp - 0x80c], ax
lea eax, [ecx + 1]
jmp 0x402239
mov eax, dword [ebp - 0x216c]
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4017f2
mov byte [ecx], 0x22
test ebx, ebx
jle 0x402f1a
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x2158]
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 0x401660
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 0x402a68
mov eax, 0x224c
mov byte [ebp - 0x80a], 0x22
lea ebx, [ebp - 0x80a]
mov word [ebp - 0x80c], ax
lea eax, [ebx + 1]
jmp 0x402c2b
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402bb2
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402490
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402490
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x402efc
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 0x402490
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402490
mov byte [ecx], al
inc ecx
jmp 0x401a10
mov dword [ebp - 0x2174], ebx
movzx eax, word [ebp - 0x2174]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402d6a
mov eax, 0x224c
mov byte [ebp - 0x2156], 0x22
lea ecx, [ebp - 0x2156]
mov word [ebp - 0x2158], ax
lea eax, [ecx + 1]
jmp 0x402ba1
mov byte [ecx], al
inc ecx
jmp 0x402490
mov word [ebp - 0x2158], 0x224c
lea ecx, [ebp - 0x2156]
mov byte [ebp - 0x2156], 0x22
lea eax, [ecx + 1]
jmp 0x402d59