Function at 0x406a70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x218c
call fcn.0040cee0
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0x2178], edx
mov ebx, eax
mov dword [ebp - 0x2170], ecx
mov eax, edx
lea ecx, [ebp - 0x216c]
mov dword [ebp - 0x2168], 0
lea edx, [ebp - 0x2164]
mov dword [ebp - 0x2164], 0xffffffff
mov dword [ebp - 0x2160], 0
call dbg.get_link_location
test eax, eax
je 0x406e63
mov eax, dword [ebp - 0x2164]
movzx edx, byte [global___dbch]
cmp eax, 0x19
ja 0x406f30
mov ecx, 0x2410800
bt ecx, eax
jae 0x406f30
lea eax, [ebp - 0x80c]
and edx, 8
mov dword [ebp - 0x217c], eax
jne 0x407762
xor eax, eax
lea esi, [ebp - 0x180c]
mov word [ebp - 0x180c], ax
mov eax, dword [ebx]
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
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], esi
mov dword [ebp - 0x2174], eax
call eax
sub esp, 0xc
test byte [0x40d000], 8
jne 0x407612
xor eax, eax
lea esi, [ebp - 0x180c]
mov word [ebp - 0x180c], ax
mov eax, dword [ebx]
mov dword [esp + 8], 0x400
mov dword [esp + 4], esi
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], esi
call eax
sub esp, 0xc
test byte [0x40d000], 8
jne 0x4074c2
mov ecx, dword [ebp - 0x217c]
lea edx, [ebp - 0x180c]
mov eax, ebx
call sym._get_cmdline.constprop.12
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 [0x40d000], 8
jne 0x407222
xor eax, eax
lea edx, [ebp - 0x2168]
lea esi, [ebp - 0x180c]
mov word [ebp - 0x180c], ax
mov eax, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x40]
lea eax, [ebp - 0x1c1c]
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2174]
mov dword [esp + 8], 0x104
mov dword [esp], esi
call eax
sub esp, 0xc
test byte [0x40d000], 8
jne 0x4070d0
xor edx, edx
cmp word [ebp - 0x202c], 0
mov word [ebp - 0x1a14], dx
jne 0x406cc0
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 0x406cc0
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 0x406cc0
test byte [0x40d000], 8
jne 0x407cf0
lea esi, [esi]
nop
mov eax, dword [ebp - 0x2170]
mov edx, dword [ebp - 0x2168]
mov ecx, 0
cmp word [ebp - 0x1c1c], 0
mov dword [esp], eax
je 0x406f70
lea eax, [ebp - 0x1c1c]
call dbg.extract_icon
mov ebx, eax
test ebx, ebx
je 0x406f85
cmp word [ebp - 0x202c], 0
jne 0x4078c1
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 0x407884
mov eax, dword [ebp - 0x2164]
mov edx, dword [ebp - 0x216c]
cmp eax, 0x10
je 0x407070
cmp eax, 0x19
je 0x407070
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 dbg.write_menu_entry
test eax, eax
sete al
mov edi, eax
movzx esi, al
mov eax, dword [ebp - 0x2160]
mov dword [esp + 8], 0
xor esi, 1
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
sub esp, 0xc
mov eax, dword [ebp - 0x2160]
test eax, eax
je 0x406e06
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 eax, dword [ebp - 0x2170]
test eax, eax
jne 0x406e59
mov eax, edi
test al, al
je 0x406e59
test byte [0x40d000], 2
je 0x406e59
mov dword [esp + 0xc], str.failed_to_build_the_menu_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 1
test byte [0x40d000], 4
je 0x406e59
mov eax, dword [ebp - 0x2178]
shr eax, 0x10
je 0x407ca0
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 0x407cb7
cmp word [ebx], 0
je 0x406ebb
mov eax, ebx
add ecx, 1
cmp word [eax + ecx*2], 0
jne 0x406eb1
mov eax, 0x224c
mov edi, dword [ebp - 0x2178]
lea edx, [ebp - 0x80a]
lea esi, [ebp - 0x6ea]
mov word [ebp - 0x80c], ax
lea esi, [esi]
lea ebx, [ecx - 1]
test ecx, ecx
jle 0x408180
cmp edx, esi
ja 0x408180
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0xd
je 0x4080c5
ja 0x407de0
cmp ax, 9
je 0x4080b2
cmp ax, 0xa
jne 0x408052
mov eax, 0x6e5c
add edx, 2
mov ecx, ebx
mov word [edx - 2], ax
jmp 0x406ee0
and edx, 4
mov esi, 1
je 0x406e59
mov dword [esp + 0xc], str.Not_under_desktop_or_start_menu._Ignoring._n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x406e59
lea eax, [ebp - 0x202c]
call dbg.extract_icon
mov ebx, eax
test ebx, ebx
jne 0x406cf7
mov edx, dword [ebp - 0x2170]
movzx eax, byte [global___dbch]
test edx, edx
jne 0x408030
test al, 2
je 0x406cf7
cmp word [ebp - 0x1c1c], 0
lea eax, [ebp - 0x1c1c]
lea esi, [ebp - 0x202c]
cmovne esi, eax
mov eax, esi
shr eax, 0x10
je 0x408310
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x408124
cmp word [esi], 0
je 0x406ffa
lea esi, [esi]
add edi, 1
cmp word [esi + edi*2], 0
jne 0x406ff0
mov eax, 0x224c
mov dword [ebp - 0x2174], ebx
lea edx, [ebp - 0x2156]
mov word [ebp - 0x2158], ax
lea ecx, [edi - 1]
test edi, edi
jle 0x4080f3
lea eax, [ebp - 0x2036]
cmp edx, eax
ja 0x4080f3
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x408260
ja 0x407e10
cmp ax, 9
je 0x408243
cmp ax, 0xa
jne 0x4081d0
mov eax, 0x6e5c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x407012
cmp eax, 0x19
lea eax, [ebp - 0x1a14]
je 0x407089
cmp word [ebp - 0x202c], 0
jne 0x407ff0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1e24]
mov ecx, edx
xor edx, edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2178]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.write_desktop_entry
test eax, eax
sete al
mov edi, eax
movzx esi, al
jmp 0x406dcb
lea eax, [ebp - 0x1c1c]
shr eax, 0x10
je 0x407f90
lea eax, [ebp - 0x1c1c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x4071f5
cmp word [ebp - 0x1c1c], 0
je 0x407120
add edi, 1
cmp word [ebp + edi*2 - 0x1c1c], 0
jne 0x407112
mov eax, 0x224c
mov dword [ebp - 0x2180], ebx
lea edx, [ebp - 0x1a12]
lea ecx, [ebp - 0x1c1c]
mov word [ebp - 0x1a14], ax
lea eax, [ebp - 0x18f2]
mov dword [ebp - 0x2174], eax
lea esi, [esi]
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x2174]
ja 0x4071c4
test edi, edi
jle 0x4071c4
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x407a23
ja 0x4071a0
cmp ax, 9
je 0x407a10
cmp ax, 0xa
jne 0x4079b0
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407150
cmp ax, 0x22
je 0x407904
cmp ax, 0x5c
jne 0x4079b0
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x407150
mov ebx, dword [ebp - 0x2180]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x4071e4
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
lea esi, [ebp - 0x1a14]
mov byte [eax], 0
mov dword [esp], esi
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.icon_file__:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x406c54
lea eax, [ebp - 0x202c]
shr eax, 0x10
je 0x407f60
lea eax, [ebp - 0x202c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x407345
cmp word [ebp - 0x202c], 0
je 0x407272
add edi, 1
cmp word [ebp + edi*2 - 0x202c], 0
jne 0x407264
mov eax, 0x224c
mov dword [ebp - 0x2184], ebx
lea edx, [ebp - 0x1a12]
lea ecx, [ebp - 0x202c]
mov word [ebp - 0x1a14], ax
lea eax, [ebp - 0x18f2]
mov dword [ebp - 0x2180], eax
lea esi, [esi]
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x2180]
ja 0x407314
test edi, edi
jle 0x407314
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x407b13
ja 0x4072f0
cmp ax, 9
je 0x407b00
cmp ax, 0xa
jne 0x407aa0
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4072a0
cmp ax, 0x22
je 0x407a53
cmp ax, 0x5c
jne 0x407aa0
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x4072a0
mov ebx, dword [ebp - 0x2184]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x407334
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
lea esi, [ebp - 0x1a14]
mov byte [eax], 0
mov dword [esp], esi
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path_______:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
test byte [0x40d000], 8
je 0x406bf7
mov eax, dword [ebp - 0x217c]
shr eax, 0x10
je 0x407f40
mov esi, dword [ebp - 0x217c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x407495
cmp word [ebp - 0x80c], 0
je 0x4073ca
mov eax, esi
nop
add edi, 1
cmp word [eax + edi*2], 0
jne 0x4073c0
mov eax, 0x224c
mov dword [ebp - 0x2184], ebx
mov ecx, dword [ebp - 0x217c]
lea edx, [ebp - 0x1a12]
mov word [ebp - 0x1a14], ax
lea eax, [ebp - 0x18f2]
mov dword [ebp - 0x2180], eax
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x2180]
ja 0x407464
test edi, edi
jle 0x407464
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x407a40
ja 0x407440
cmp ax, 9
je 0x407980
cmp ax, 0xa
jne 0x407920
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4073f4
cmp ax, 0x22
je 0x407993
cmp ax, 0x5c
jne 0x407920
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x4073f4
mov ebx, dword [ebp - 0x2184]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x407484
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
lea esi, [ebp - 0x1a14]
mov byte [eax], 0
mov dword [esp], esi
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.args_______:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x406bf7
lea eax, [ebp - 0x100c]
shr eax, 0x10
je 0x407f10
lea eax, [ebp - 0x100c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x4075e5
cmp word [ebp - 0x100c], 0
je 0x407512
add edi, 1
cmp word [ebp + edi*2 - 0x100c], 0
jne 0x407504
mov eax, 0x224c
mov dword [ebp - 0x2184], ebx
lea edx, [ebp - 0x80a]
lea ecx, [ebp - 0x100c]
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x6ea]
mov dword [ebp - 0x2180], eax
lea esi, [esi]
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x2180]
ja 0x4075b4
test edi, edi
jle 0x4075b4
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x407a83
ja 0x407590
cmp ax, 9
je 0x407b90
cmp ax, 0xa
jne 0x407b30
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407540
cmp ax, 0x22
je 0x407ba3
cmp ax, 0x5c
jne 0x407b30
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x407540
mov ebx, dword [ebp - 0x2184]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x4075d4
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
mov eax, dword [ebp - 0x217c]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.description:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x406bb1
lea eax, [ebp - 0x1e24]
shr eax, 0x10
je 0x407fc0
lea eax, [ebp - 0x1e24]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x407735
cmp word [ebp - 0x1e24], 0
je 0x407662
add edi, 1
cmp word [ebp + edi*2 - 0x1e24], 0
jne 0x407654
mov eax, 0x224c
mov dword [ebp - 0x2184], ebx
lea edx, [ebp - 0x80a]
lea ecx, [ebp - 0x1e24]
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x6ea]
mov dword [ebp - 0x2180], eax
lea esi, [esi]
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x2180]
ja 0x407704
test edi, edi
jle 0x407704
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x407a70
ja 0x4076e0
cmp ax, 9
je 0x407c20
cmp ax, 0xa
jne 0x407bc0
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407690
cmp ax, 0x22
je 0x407c33
cmp ax, 0x5c
jne 0x407bc0
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x407690
mov ebx, dword [ebp - 0x2184]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x407724
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
mov eax, dword [ebp - 0x217c]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.workdir____:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x406b5e
mov esi, dword [ebp - 0x216c]
test esi, esi
je 0x4081b0
mov eax, esi
shr eax, 0x10
je 0x408151
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x407857
cmp word [esi], 0
je 0x4077ae
add edi, 1
cmp word [esi + edi*2], 0
jne 0x4077a4
mov eax, 0x224c
mov dword [ebp - 0x217c], ebx
lea edx, [ebp - 0x80a]
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x6ea]
mov dword [ebp - 0x2174], eax
lea ecx, [edi - 1]
cmp edx, dword [ebp - 0x2174]
ja 0x407820
test edi, edi
jle 0x407820
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x407e40
ja 0x407db0
cmp ax, 9
je 0x407ed0
cmp ax, 0xa
jne 0x407e70
mov eax, 0x6e5c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x4077d2
mov ebx, dword [ebp - 0x217c]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ecx, ecx
jle 0x407840
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
mov dword [ebp - 0x217c], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Link_______:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x406b06
xor esi, esi
mov edi, 1
test byte [0x40d000], 2
je 0x406df0
mov dword [esp + 0xc], str.failed_wait_for_semaphore_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x406df0
lea eax, [ebp - 0x202c]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
test eax, eax
je 0x406d05
xor edx, edx
lea esi, [ebp - 0x1a14]
movzx ecx, word [eax + edx]
mov word [esi + edx], cx
add edx, 2
test cx, cx
jne 0x4078e3
mov dword [esp], esi
call dword [sym.imp.user32.dll_CharLowerW]
sub esp, 4
jmp 0x406d05
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x407150
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x407c80
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x4073f4
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4073f4
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x4073f4
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x407c70
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x407150
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407150
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407150
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4073f4
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x4072a0
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407690
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407540
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x407c60
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x4072a0
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4072a0
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x4072a0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x407c50
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x407540
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407540
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x407540
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x407c90
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x407690
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x407690
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x407690
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x407540
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x4072a0
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x407150
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x4073f4
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x407690
movzx eax, word [ebp - 0x2178]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.16
mov dword [esp + 0x10], eax
mov esi, 1
mov dword [esp + 0xc], str.Unknown_link_location__s._Ignoring._n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x406e59
mov eax, ebx
shr eax, 0x10
je 0x4083df
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 0x4082b4
cmp word [ebp - 0x202c], 0
je 0x407d3e
nop
add ecx, 1
cmp word [ebp + ecx*2 - 0x202c], 0
jne 0x407d30
mov eax, 0x224c
lea edx, [ebp - 0x2156]
lea ebx, [ebp - 0x202c]
mov word [ebp - 0x2158], ax
lea edi, [ebp - 0x2036]
lea esi, [esi]
lea esi, [ecx - 1]
cmp edx, edi
ja 0x408289
test ecx, ecx
jle 0x408289
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x4083a3
ja 0x407ee3
cmp ax, 9
je 0x4083c0
cmp ax, 0xa
jne 0x408330
mov eax, 0x6e5c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x407d60
cmp ax, 0x22
je 0x407e53
cmp ax, 0x5c
jne 0x407e70
mov ebx, 0x5c5c
add edx, 2
mov edi, ecx
mov word [edx - 2], bx
jmp 0x4077d2
cmp ax, 0x22
je 0x4080e0
cmp ax, 0x5c
jne 0x408052
mov eax, 0x5c5c
add edx, 2
mov ecx, ebx
mov word [edx - 2], ax
jmp 0x406ee0
cmp ax, 0x22
je 0x408230
cmp ax, 0x5c
jne 0x4081d0
mov ebx, 0x5c5c
add edx, 2
mov edi, ecx
mov word [edx - 2], bx
jmp 0x407012
mov eax, 0x725c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x4077d2
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, ecx
jmp 0x4077d2
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x408170
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, ecx
mov byte [edx - 2], bl
jmp 0x4077d2
mov eax, 0x745c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x4077d2
cmp ax, 0x22
je 0x408390
cmp ax, 0x5c
jne 0x408330
mov eax, 0x5c5c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x407d60
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.16
jmp 0x4075e5
movzx eax, word [ebp - 0x217c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.16
jmp 0x407495
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.16
jmp 0x407345
lea eax, [ebp - 0x1c1c]
mov dword [esp], str._04x
mov dword [ebp - 0x2174], eax
movzx eax, word [ebp - 0x2174]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.16
jmp 0x4071f5
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.16
jmp 0x407735
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1e24]
mov ecx, edx
xor edx, edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x217c]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
lea eax, [ebp - 0x202c]
mov dword [esp], eax
xor eax, eax
jmp 0x4070ba
test al, 4
jne 0x4082e1
mov eax, dword [ebp - 0x2160]
test eax, eax
je 0x408273
xor esi, esi
mov edi, 1
jmp 0x406dfa
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x4081c0
mov ecx, eax
mov byte [edx], 0x5c
add edx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdef]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx - 1], al
mov byte [edx - 2], cl
mov ecx, ebx
jmp 0x406ee0
mov eax, 0x745c
add edx, 2
mov ecx, ebx
mov word [edx - 2], ax
jmp 0x406ee0
mov eax, 0x725c
add edx, 2
mov ecx, ebx
mov word [edx - 2], ax
jmp 0x406ee0
mov eax, 0x225c
add edx, 2
mov ecx, ebx
mov word [edx - 2], ax
jmp 0x406ee0
mov ebx, dword [ebp - 0x2174]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ecx, ecx
jle 0x408113
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x2158]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_extract_icon_from__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x406cf7
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.16
jmp 0x407857
mov byte [edx], al
mov edi, ecx
add edx, 1
jmp 0x4077d2
mov byte [edx], 0x22
lea eax, [edx + 1]
test ebx, ebx
jle 0x40819a
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x407cb7
mov eax, str._null_
jmp 0x407857
mov byte [edx], al
mov ecx, ebx
add edx, 1
jmp 0x406ee0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4083d3
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, ecx
mov byte [edx - 2], bl
jmp 0x407012
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, ecx
jmp 0x407012
mov eax, 0x745c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x407012
mov eax, 0x725c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x407012
mov eax, dword [ebp - 0x216c]
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x406e59
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x4082a3
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x2158]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.pidl_path__:__s_n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x406cc0
mov dword [esp + 0xc], str.Unable_to_extract_icon__deferring._n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x408038
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.16
jmp 0x408124
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x408401
mov ecx, eax
mov byte [edx], 0x5c
add edx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdef]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx - 1], al
mov byte [edx - 2], cl
mov ecx, esi
jmp 0x407d60
mov eax, 0x225c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x407d60
mov eax, 0x725c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x407d60
mov eax, 0x745c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x407d60
mov byte [edx], al
mov edi, ecx
add edx, 1
jmp 0x407012
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.16
jmp 0x4082b4
mov byte [edx], al
mov ecx, esi
add edx, 1
jmp 0x407d60