Function at 0x401810
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x70c
mov ebx, dword [ebp + 0x10]
call dword [sym.imp.comctl32.dll_InitCommonControls]
xor eax, eax
mov word [ebp - 0x6ec], ax
test byte [section..data], 8
jne 0x401cf0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
test eax, eax
je 0x401b5f
mov dword [esp], 0x44
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x401b56
mov dword [ebp - 0x6f4], 0x10
movzx edi, word [ebx]
xor ecx, ecx
mov dword [ebp - 0x6f0], 0
mov edx, edi
jmp 0x4018a6
cmp dx, 0x22
je 0x401a01
lea edi, [ebx + 2]
test ecx, ecx
je 0x4019cd
lea esi, [esi]
nop
movzx edx, word [ebx + 2]
mov ebx, edi
test dx, dx
je 0x401a30
movzx eax, dx
mov dword [ebp - 0x700], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_iswspace]
mov dword [ebp - 0x6fc], edx
mov dword [ebp - 0x6f8], eax
call eax
mov edx, dword [ebp - 0x6fc]
mov ecx, dword [ebp - 0x700]
test eax, eax
je 0x401882
lea edi, [ebx + 2]
cmp ecx, 1
jne 0x4018a0
xor eax, eax
mov word [edi - 2], ax
movzx edx, word [ebx + 2]
test dx, dx
je 0x401a30
movzx eax, dx
mov dword [ebp - 0x6fc], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x6f8]
call eax
mov edx, dword [ebp - 0x6fc]
test eax, eax
je 0x401b91
movzx edi, word [ebx + 4]
lea ecx, [ebx + 4]
mov dword [ebp - 0x6fc], ecx
test di, di
je 0x401a30
movzx eax, di
mov dword [esp], eax
mov eax, dword [ebp - 0x6f8]
call eax
xor ecx, ecx
test eax, eax
je 0x4019c1
mov ebx, dword [ebp - 0x6fc]
jmp 0x4018de
cmp ecx, 2
mov dword [ebp - 0x6fc], ecx
jne 0x401a2b
xor eax, eax
mov word [ebx], ax
test dx, dx
je 0x401a30
movzx eax, dx
mov dword [ebp - 0x700], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x6f8]
call eax
mov edx, dword [ebp - 0x700]
mov ecx, dword [ebp - 0x6fc]
test eax, eax
je 0x401dd0
movzx edi, word [ebx + 4]
lea ecx, [ebx + 4]
mov dword [ebp - 0x6fc], ecx
test di, di
je 0x401a30
movzx eax, di
mov dword [esp], eax
mov eax, dword [ebp - 0x6f8]
call eax
test eax, eax
jne 0x402020
cmp di, 0x22
je 0x401a24
mov ebx, dword [ebp - 0x6fc]
mov ecx, 1
mov eax, dword [ebp - 0x6f4]
sub eax, 1
cmp eax, dword [ebp - 0x6f0]
jle 0x401b20
mov eax, dword [ebp - 0x6f0]
lea edi, [ebx + 2]
mov dword [esi + eax*4], ebx
add eax, 1
mov dword [ebp - 0x6f0], eax
jmp 0x4018a0
lea edi, [ebx + 2]
movzx edx, word [ebx + 2]
cmp ecx, 1
jne 0x401950
xor ecx, ecx
mov word [ebx], cx
test dx, dx
je 0x401a30
mov ebx, edi
mov ecx, 2
jmp 0x4019d2
movzx edx, word [ebx + 6]
lea edi, [ebx + 6]
test dx, dx
jne 0x401a1b
mov eax, dword [ebp - 0x6f0]
mov dword [esi + eax*4], 0
test byte [section..data], 8
jne 0x401bd4
mov eax, dword [ebp - 0x6f0]
test eax, eax
je case.0x401bcd.1
mov dword [ebp - 0x6f4], 0
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x6f8], ax
mov edx, dword [esi + ebx*4]
lea edi, [ebx*4]
movzx eax, word [edx]
and eax, 0xfffffffd
cmp ax, 0x2d
je 0x401bb0
mov eax, dword [ebp - 0x6f4]
test eax, eax
je 0x4022f3
cmp word [ebp - 0x6f8], 0x43
je 0x401df0
cmp word [ebp - 0x6f8], 0
jne 0x401ef0
cmp dword [ebp - 0x6f0], ebx
jg 0x402223
lea edi, [ebp - 0x6ec]
mov dword [esp], edi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
mov dword [section..bss], 1
mov eax, dword [ebp - 0x6f4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], sym._ExtCabCallback_16
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.setupapi.dll_SetupIterateCabinetW]
sub esp, 0x10
test eax, eax
jne case.0x401bcd.1
test byte [section..data], 2
jne 0x4023c0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
shl dword [ebp - 0x6f4], 1
mov eax, dword [ebp - 0x6f4]
mov dword [ebp - 0x6f8], ecx
lea eax, [eax*4 + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov ecx, dword [ebp - 0x6f8]
test eax, eax
mov esi, eax
jne 0x4019e7
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
test byte [section..data], 2
je case.0x401bcd.1
mov dword [esp + 0xc], str.Command_line_parsing_failed_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp case.0x401bcd.1
cmp dx, 0x22
je 0x401db2
mov ebx, edi
mov ecx, 1
jmp 0x4019d2
movzx eax, word [edx + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
lea edx, [eax - 0x41]
cmp dx, 0x18
ja case.0x401bcd.1
movzx edx, dx
jmp dword [edx*4 + 0x406124]
mov dword [esp], section..data
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401a4a
mov eax, dword [ebp - 0x6f0]
test eax, eax
je case.0x401bcd.1
xor eax, eax
mov dword [ebp - 0x6f8], esi
mov esi, eax
jmp 0x401c11
add esi, 1
cmp dword [ebp - 0x6f0], esi
je 0x40216c
test byte [section..data], 8
je 0x401c02
mov eax, dword [ebp - 0x6f8]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x402380
mov eax, ebx
shr eax, 0x10
je 0x402333
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x402131
cmp word [ebx], 0
je 0x401c6a
nop
add edi, 1
cmp word [ebx + edi*2], 0
jne 0x401c60
mov eax, 0x224c
mov dword [ebp - 0x6f4], ebx
lea edx, [ebp - 0x2da]
mov word [ebp - 0x2dc], ax
lea eax, [ebp - 0x1ba]
mov dword [ebp - 0x6fc], esi
mov esi, eax
lea ecx, [edi - 1]
cmp edx, esi
ja 0x402100
test edi, edi
jle 0x402100
add dword [ebp - 0x6f4], 2
mov eax, dword [ebp - 0x6f4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4022e0
ja 0x4020d0
cmp ax, 9
je 0x402250
cmp ax, 0xa
jne 0x402280
mov eax, 0x6e5c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x401c90
test ebx, ebx
je 0x402370
mov eax, ebx
shr eax, 0x10
je 0x402062
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x402075
cmp word [ebx], 0
je 0x401d3a
lea esi, [esi]
add edi, 1
cmp word [ebx + edi*2], 0
jne 0x401d30
mov eax, 0x224c
mov dword [ebp + 0x10], ebx
mov ecx, ebx
lea edx, [ebp - 0x2da]
mov word [ebp - 0x2dc], ax
lea eax, [ebp - 0x1ba]
mov dword [ebp - 0x6f0], eax
lea esi, [esi]
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x6f0]
ja 0x402300
test edi, edi
jle 0x402300
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x402193
ja 0x4020a2
cmp ax, 9
je 0x402180
cmp ax, 0xa
jne 0x4021c3
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x401d60
cmp word [ebx + 4], 0
lea eax, [ebx + 4]
je 0x401a30
mov ebx, eax
mov ecx, 2
jmp 0x4019d2
cmp dx, 0x22
jne 0x401b9b
cmp word [ebx + 4], 0
lea eax, [ebx + 4]
je 0x401a30
mov ebx, eax
jmp 0x4019d2
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0x6f0]
jne case.0x401bcd.1
lea edi, [ebp - 0x6ec]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x104
mov eax, dword [esi + ebx*4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je case.0x401bcd.1
mov dword [esp], edi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
mov dword [esp], edi
mov ebx, edi
call dword [sym.imp.shlwapi.dll_PathIsDirectoryW]
sub esp, 4
test eax, eax
jne 0x4024f0
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
sub esp, 4
test eax, eax
je 0x401ec0
mov ecx, dword [0x407004]
test ecx, ecx
jne 0x401ec0
lea esi, [ebp - 0x2dc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.Overwrite___s__
mov dword [esp + 4], 0x168
mov dword [esp], esi
call sym._swprintf.constprop.6
mov dword [esp + 0xc], 0x34
mov dword [esp + 8], str.Extract
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
cmp eax, 6
jne case.0x401bcd.1
lea esi, [esi]
nop
test byte [section..data], 8
jne 0x402521
mov eax, dword [ebp - 0x6f4]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
jmp case.0x401bcd.1
movzx esi, word [ebp - 0x6f8]
cmp si, 0x45
je 0x402223
lea edi, [ebp - 0x6ec]
mov dword [esp], edi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
cmp si, 0x43
je 0x401e3c
cmp si, 0x44
je 0x401acf
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [0x407004], 1
add ebx, 1
cmp ebx, dword [ebp - 0x6f0]
jl 0x401a6d
mov edi, dword [ebp - 0x6f4]
test edi, edi
jne 0x401a95
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp word [ebp - 0x6f8], 0
jne case.0x401bcd.1
mov word [ebp - 0x6f8], ax
jmp 0x401f3d
add ebx, 1
cmp ebx, dword [ebp - 0x6f0]
jge case.0x401bcd.1
lea eax, [ebp - 0x6ec]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
mov eax, dword [esi + edi + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
jne 0x401f3d
jmp case.0x401bcd.1
test byte [section..data], 1
je 0x401f3d
mov dword [esp + 0xc], str._A_not_implemented_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
jmp 0x401f3d
movzx edi, word [ebx + 6]
lea eax, [ebx + 6]
mov dword [ebp - 0x6fc], eax
test di, di
je 0x401a30
movzx eax, di
mov dword [esp], eax
mov eax, dword [ebp - 0x6f8]
call eax
test eax, eax
jne 0x402390
cmp di, 0x22
jne 0x4019c7
lea edi, [ebx + 8]
movzx edx, word [ebx + 8]
jmp 0x401a2b
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cmdline:__s_n
mov dword [esp + 8], 0x4061d4
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x40183b
cmp ax, 0x22
je 0x4021b0
cmp ax, 0x5c
jne 0x4021c3
mov ebx, 0x5c5c
add edx, 2
mov edi, esi
mov word [edx - 2], bx
jmp 0x401d60
cmp ax, 0x22
je 0x402263
cmp ax, 0x5c
jne 0x402280
mov ebx, 0x5c5c
add edx, 2
mov edi, ecx
mov word [edx - 2], bx
jmp 0x401c90
mov esi, dword [ebp - 0x6fc]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ecx, ecx
jle 0x402120
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x2dc]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], esi
add esi, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.arg__d:__s_n
mov dword [esp + 8], 0x4061d4
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
cmp dword [ebp - 0x6f0], esi
jne 0x401c11
mov esi, dword [ebp - 0x6f8]
jmp 0x401a58
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x401d60
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x401d60
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x401d60
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402350
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefget_extrac_args]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x401d60
cmp word [ebp - 0x6ec], 0
lea edi, [ebp - 0x6ec]
je 0x4023a0
mov dword [esp], edi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
jmp 0x401ad9
mov eax, 0x745c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x401c90
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
mov edi, ecx
jmp 0x401c90
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x402360
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefget_extrac_args]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov byte [edx - 1], al
mov edi, ecx
mov byte [edx - 2], bl
jmp 0x401c90
mov eax, 0x725c
add edx, 2
mov edi, ecx
mov word [edx - 2], ax
jmp 0x401c90
mov dword [ebp - 0x6f4], edx
jmp 0x401f3d
mov ebx, dword [ebp + 0x10]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x40231d
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x2dc]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x402075
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.4
jmp 0x402131
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x401d60
mov byte [edx], al
mov edi, ecx
add edx, 1
jmp 0x401c90
mov eax, str._null_
jmp 0x402075
mov eax, str._null_
jmp 0x402131
lea edi, [ebx + 8]
xor ecx, ecx
mov ebx, dword [ebp - 0x6fc]
jmp 0x4018a0
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
jmp 0x402237
mov eax, dword [ebp - 0x6f4]
shr eax, 0x10
je 0x402956
mov esi, dword [ebp - 0x6f4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4024c1
cmp word [esi], 0
je 0x40240a
mov eax, esi
add edx, 1
cmp word [eax + edx*2], 0
jne 0x402400
mov eax, 0x224c
mov esi, dword [ebp - 0x6f4]
lea ecx, [ebp - 0x2da]
lea edi, [ebp - 0x1ba]
mov word [ebp - 0x2dc], ax
lea esi, [esi]
nop
lea ebx, [edx - 1]
cmp ecx, edi
ja 0x402496
test edx, edx
jle 0x402496
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x4027e3
ja 0x402472
cmp ax, 9
je 0x4027d0
cmp ax, 0xa
jne 0x402770
mov eax, 0x6e5c
add ecx, 2
mov edx, ebx
mov word [ecx - 2], ax
jmp 0x402430
cmp ax, 0x22
je 0x402800
cmp ax, 0x5c
jne 0x402770
mov eax, 0x5c5c
add ecx, 2
mov edx, ebx
mov word [ecx - 2], ax
jmp 0x402430
mov byte [ecx], 0x22
lea eax, [ecx + 1]
test ebx, ebx
jle 0x4024b0
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x2dc]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_extract_cab_file__s_n
mov dword [esp + 8], str.extract
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp case.0x401bcd.1
mov eax, dword [ebp - 0x6f4]
lea ebx, [ebp - 0x4e4]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathCombineW]
sub esp, 0xc
jmp 0x401e52
mov eax, ebx
shr eax, 0x10
je 0x402972
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x6f0], str._invalid_
sub esp, 8
test eax, eax
jne 0x40262b
cmp word [ebx], 0
je 0x40256a
lea esi, [esi]
nop
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x402560
mov dword [ebp - 0x6f0], ebx
mov edx, 0x224c
mov ecx, ebx
mov word [ebp - 0x2dc], dx
lea edx, [ebp - 0x2da]
lea edi, [eax - 1]
test eax, eax
jle 0x4025f4
lea eax, [ebp - 0x1ba]
cmp edx, eax
ja 0x4025f4
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x402943
ja 0x4025d0
cmp ax, 9
je 0x402903
cmp ax, 0xa
jne 0x4028a3
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, edi
jmp 0x402584
cmp ax, 0x22
je 0x402813
cmp ax, 0x5c
jne 0x4028a3
mov ebx, 0x5c5c
add edx, 2
mov eax, edi
mov word [edx - 2], bx
jmp 0x402584
mov ebx, dword [ebp - 0x6f0]
mov byte [edx], 0x22
lea eax, [edx + 1]
test edi, edi
jle 0x402614
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x2dc]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [ebp - 0x6f0], eax
mov eax, dword [ebp - 0x6f4]
shr eax, 0x10
je 0x402990
mov esi, dword [ebp - 0x6f4]
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 0x402737
cmp word [esi], 0
je 0x40267a
mov eax, esi
lea esi, [esi]
nop
add ecx, 1
cmp word [eax + ecx*2], 0
jne 0x402670
mov eax, 0x224c
mov esi, dword [ebp - 0x6f4]
mov dword [ebp - 0x6f8], ebx
lea edx, [ebp - 0x2da]
mov word [ebp - 0x2dc], ax
lea eax, [ebp - 0x1ba]
mov ebx, eax
lea edi, [ecx - 1]
cmp edx, ebx
ja 0x402706
test ecx, ecx
jle 0x402706
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x402916
ja 0x4026e2
cmp ax, 9
je 0x402890
cmp ax, 0xa
jne 0x402830
mov eax, 0x6e5c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x4026a0
cmp ax, 0x22
je 0x402930
cmp ax, 0x5c
jne 0x402830
mov eax, 0x5c5c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x4026a0
mov ebx, dword [ebp - 0x6f8]
mov byte [edx], 0x22
lea eax, [edx + 1]
test edi, edi
jle 0x402726
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x2dc]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov esi, dword [ebp - 0x6f0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.copying__s_to__s_n
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.copy_file
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x401ecd
lea edx, [eax - 0x20]
cmp dx, 0x5e
jbe 0x4029ac
mov edx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr dx, 0xc
movzx edx, dx
movzx edx, byte [edx + str.0123456789abcdefget_extrac_args]
mov byte [ecx - 4], dl
mov edx, eax
shr dx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefget_extrac_args]
mov byte [ecx - 3], dl
mov edx, eax
and eax, 0xf
shr dx, 4
movzx eax, byte [eax + str.0123456789abcdefget_extrac_args]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefget_extrac_args]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
mov edx, ebx
jmp 0x402430
mov eax, 0x745c
add ecx, 2
mov edx, ebx
mov word [ecx - 2], ax
jmp 0x402430
mov eax, 0x725c
add ecx, 2
mov edx, ebx
mov word [ecx - 2], ax
jmp 0x402430
mov eax, 0x225c
add ecx, 2
mov edx, ebx
mov word [ecx - 2], ax
jmp 0x402430
mov esi, 0x225c
add edx, 2
mov eax, edi
mov word [edx - 2], si
jmp 0x402584
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x4029b8
mov ecx, eax
mov byte [edx], 0x5c
add edx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefget_extrac_args]
mov byte [edx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefget_extrac_args]
mov byte [edx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefget_extrac_args]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefget_extrac_args]
mov byte [edx - 1], al
mov byte [edx - 2], cl
mov ecx, edi
jmp 0x4026a0
mov eax, 0x745c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x4026a0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4029c4
mov esi, eax
mov byte [edx], 0x5c
add edx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefget_extrac_args]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefget_extrac_args]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefget_extrac_args]
and esi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefget_extrac_args]
mov byte [edx - 1], al
mov eax, edi
mov byte [edx - 2], bl
jmp 0x402584
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, edi
jmp 0x402584
mov eax, 0x725c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x4026a0
mov eax, 0x225c
add edx, 2
mov ecx, edi
mov word [edx - 2], ax
jmp 0x4026a0
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, edi
jmp 0x402584
movzx eax, word [ebp - 0x6f4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.4
jmp 0x4024c1
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.4
mov dword [ebp - 0x6f0], eax
jmp 0x40262b
movzx eax, word [ebp - 0x6f4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.4
jmp 0x402737
mov byte [ecx], al
mov edx, ebx
add ecx, 1
jmp 0x402430
mov byte [edx], al
mov ecx, edi
add edx, 1
jmp 0x4026a0
mov byte [edx], al
add edx, 1
mov eax, edi
jmp 0x402584