Function at 0x4016d0
Capabilities:
Check if file exists
Copy file
Get common file path
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x728
mov edi, dword [ecx + 8]
call dword [sym.imp.comctl32.dll_InitCommonControls]
xor eax, eax
mov word [ebp - 0x6f8], ax
test byte [section..data], 8
jne 0x401ab0
cmp word [edi], 0
je 0x401ae9
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401718
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4019c3
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x401760
mov dword [ebp - 0x6fc], ecx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x708], eax
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x700], eax
sub esp, 0xc
test eax, eax
je 0x401e9c
movzx ebx, word [esi]
mov ecx, dword [ebp - 0x6fc]
test bx, bx
je 0x401de3
mov dword [ebp - 0x704], 0x10
xor edi, edi
mov dword [ebp - 0x6fc], 0
mov word [ebp - 0x70a], cx
jmp 0x4017fb
cmp dword [ebp - 0x6fc], 1
mov ebx, esi
je 0x401930
lea esi, [ebx + 2]
movzx ebx, word [ebx + 2]
test bx, bx
je 0x401854
movzx eax, bx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
jne 0x4017e0
cmp bx, 0x22
je 0x401918
mov eax, dword [ebp - 0x6fc]
mov ebx, esi
test eax, eax
jne 0x4017ef
mov dword [ebp - 0x6fc], 1
mov eax, dword [ebp - 0x704]
sub eax, 1
cmp eax, edi
jle 0x401950
mov eax, dword [ebp - 0x700]
lea esi, [ebx + 2]
mov dword [eax + edi*4], ebx
movzx ebx, word [ebx + 2]
add edi, 1
test bx, bx
jne 0x4017fb
mov eax, dword [ebp - 0x700]
movzx ecx, word [ebp - 0x70a]
mov dword [eax + edi*4], 0
test byte [section..data], 8
jne 0x401af8
test edi, edi
je 0x401904
mov dword [ebp - 0x6fc], 0
mov esi, edi
xor ebx, ebx
mov edi, ecx
mov eax, dword [ebp - 0x700]
lea edx, [ebx*4]
mov ecx, dword [eax + ebx*4]
movzx eax, word [ecx]
and eax, 0xfffffffd
cmp ax, 0x2d
je 0x401a28
mov eax, dword [ebp - 0x6fc]
test eax, eax
je 0x401dd8
mov ecx, edi
mov edi, esi
cmp cx, 0x43
je 0x401bd0
test cx, cx
je 0x401cd0
cmp cx, 0x45
je 0x401d66
lea ebx, [ebp - 0x6f8]
mov dword [ebp - 0x700], ecx
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
mov ecx, dword [ebp - 0x700]
sub esp, 4
cmp cx, 0x44
je 0x401cea
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x6fc]
cmp eax, 1
je 0x401a00
cmp eax, 2
jne 0x401a05
mov dword [ebp - 0x6fc], 0
xor eax, eax
mov ebx, esi
mov word [esi], ax
jmp 0x4017ef
shl dword [ebp - 0x704], 1
mov eax, dword [ebp - 0x704]
lea eax, [eax*4 + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x700]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x708]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [ebp - 0x700], eax
sub esp, 0x10
test eax, eax
jne 0x40183c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x708]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test byte [section..data], 2
je 0x401904
mov dword [esp + 0xc], str.Command_line_parsing_failed_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401904
xor eax, eax
mov word [esi], ax
cmp word [esi + 2], 0
je 0x401854
mov dword [ebp - 0x6fc], 2
lea ebx, [esi + 2]
jmp 0x40182b
movzx eax, word [ecx + 2]
mov dword [ebp - 0x704], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
mov edx, dword [ebp - 0x704]
cmp ax, 0x4c
je 0x401d8b
ja 0x401a98
cmp ax, 0x41
je 0x401b90
lea ecx, [eax - 0x43]
cmp cx, 2
ja 0x401904
test di, di
jne 0x401904
mov edi, eax
add ebx, 1
cmp ebx, esi
jl 0x40188d
mov edx, dword [ebp - 0x6fc]
mov ecx, edi
mov edi, esi
test edx, edx
je 0x401904
jmp 0x4018bf
cmp ax, 0x59
jne 0x401904
mov dword [0x406004], 1
jmp 0x401a6f
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.cmdline:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x404170
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp word [edi], 0
jne 0x401710
mov eax, 2
jmp 0x401726
mov dword [ebp - 0x6fc], ecx
mov dword [esp], section..data
call sym.___wine_dbg_get_channel_flags
mov ecx, dword [ebp - 0x6fc]
test al, 8
je 0x401875
xor ebx, ebx
test edi, edi
je 0x401904
mov word [ebp - 0x6fc], cx
mov esi, dword [ebp - 0x700]
jmp 0x401b3f
add ebx, 1
cmp ebx, edi
je 0x401b83
test byte [section..data], 8
je 0x401b38
mov eax, dword [esi + ebx*4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], ebx
add ebx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.arg__d:__s_n
mov dword [esp + 8], 0x404170
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp ebx, edi
jne 0x401b3f
movzx ecx, word [ebp - 0x6fc]
jmp 0x40187d
test byte [section..data], 1
je 0x401a6f
mov dword [esp + 0xc], str._A_not_implemented_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401a6f
lea eax, [ebx + 1]
cmp eax, edi
jne 0x401904
lea esi, [ebp - 0x6f8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x104
mov eax, dword [ebp - 0x700]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je 0x401904
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathIsDirectoryW]
sub esp, 4
test eax, eax
jne 0x401e26
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
sub esp, 4
test eax, eax
je 0x401c9a
mov eax, dword [0x406004]
test eax, eax
jne 0x401c9a
lea ebx, [ebp - 0x2e8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Overwrite___s__
mov dword [esp + 4], 0x168
mov dword [esp], ebx
call sym._swprintf.constprop.0
mov dword [esp + 0xc], 0x34
mov dword [esp + 8], str.Extract
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
cmp eax, 6
jne 0x401904
test byte [section..data], 8
jne 0x401e57
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x6fc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
jmp 0x401904
cmp ebx, edi
jl 0x401d66
lea ebx, [ebp - 0x6f8]
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
mov dword [section..bss], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], dbg.ExtCabCallback
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x6fc]
mov dword [esp], eax
call sym._SetupIterateCabinetW_16
sub esp, 0x10
test eax, eax
jne 0x401904
test byte [section..data], 2
je 0x401904
mov eax, dword [ebp - 0x6fc]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Could_not_extract_cab_file__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.extract
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401904
cmp word [ebp - 0x6f8], 0
lea ebx, [ebp - 0x6f8]
je 0x401e0d
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
sub esp, 4
jmp 0x401cf4
add ebx, 1
cmp ebx, esi
jge 0x401904
lea eax, [ebp - 0x6f8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
mov eax, dword [ebp - 0x700]
mov eax, dword [eax + edx + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
jne 0x401a6f
jmp 0x401904
mov dword [ebp - 0x6fc], ecx
jmp 0x401a6f
mov eax, dword [ebp - 0x700]
mov dword [eax], 0
test byte [section..data], 8
je 0x401904
mov dword [esp], section..data
call sym.___wine_dbg_get_channel_flags
jmp 0x401904
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
jmp 0x401d7a
mov eax, dword [ebp - 0x6fc]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
mov dword [esp + 4], esi
lea esi, [ebp - 0x4f0]
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathCombineW]
sub esp, 0xc
jmp 0x401c32
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, dword [ebp - 0x6fc]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.copying__s_to__s_n
mov dword [esp + 8], str.copy_file
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401ca7
mov dword [esp + 8], esi
jmp 0x4019a3