Function at 0x1042f1e
Capabilities:
Accept command line arguments
Check if file exists
Create directory
Get common file path
Get file attributes
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x108e1f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov dword [ebp - 0xa40], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1042f44
sub eax, esi
sar eax, 1
push 0
pop ebx
mov dword [ebp - 0xa48], eax
mov eax, ebx
je 0x1042f73
cmp word [edx + eax*2], 0x3a
je 0x10430a5
inc eax
cmp eax, dword [ebp - 0xa48]
jb 0x1042f5f
movzx eax, word [edx]
cmp ax, 0x2e
je 0x104353c
cmp ax, 0x2f
je 0x104353c
cmp ax, 0x5c
je 0x104353c
mov edi, 0x104
push edi
lea eax, [ebp - 0x61c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x61c]
push eax
call esi
mov eax, dword [ebp + 0x10]
and eax, 0x28
cmp al, 0x28
jne 0x104301a
push edi
lea eax, [ebp - 0xa2c]
push eax
push ebx
push ebx
push 0x1009d78
call sub.SHELL32.dll_SHGetFolderPathEx
cmp eax, ebx
jl 0x10430b0
lea eax, [ebp - 0xa2c]
push eax
call esi
push 0x100d400
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80
test eax, eax
jne 0x1043195
call ebx
cmp eax, 2
jne 0x104317e
push 0x100db80
push 0x100d4f0
push 0x18b
push edi
call fcn.01054409
add esp, 0x10
push 0
push 0x100d400
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x104316a
cmp byte [ebp + 0x14], 0
je 0x1043147
lea eax, [ebp - 0xa2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10430db
call ebx
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
push 0x100db28
push edi
jmp 0x1043547
push edx
push 0x100d420
jmp 0x1043542
push eax
push 0x100dab0
push 0x100d4f0
push 0x156
push 0x80
call fcn.01054409
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call esi
jmp 0x104354f
push 0x100d400
lea eax, [ebp - 0xa2c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x104310d
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x100da7c
push edi
call fcn.01054776
pop ecx
pop ecx
jmp 0x104354f
push 0x273e
push 0x100da38
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
mov dword [ebp - 0xa38], eax
test eax, eax
jge 0x1043147
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0xa38]
push 0x100d9d8
jmp 0x104309f
push 0x100d400
call esi
test eax, eax
jne 0x1043195
call ebx
push eax
push 0x100d938
push 0x100d4f0
push 0x1b8
push edi
jmp 0x10430c5
call ebx
push eax
push 0x100d8c8
push 0x100d4f0
push 0x1af
jmp 0x1043164
call ebx
push eax
push 0x100d848
push 0x100d4f0
push 0x1c2
jmp 0x10430c0
mov eax, dword [0x1097428]
push eax
mov dword [ebp - 0xa3c], eax
call esi
test eax, eax
jne 0x10432eb
call ebx
cmp eax, 2
jne 0x10432a9
cmp byte [ebp + 0xc], 0
jne 0x10430cd
push 0
push dword [ebp - 0xa3c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10432d0
cmp byte [ebp + 0x14], 0
je 0x104329d
lea eax, [ebp - 0xa2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x104308c
push dword [ebp - 0xa3c]
lea eax, [ebp - 0xa2c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10430f2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x104329d
lea ecx, [ebp - 0xa44]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xa38], eax
test eax, eax
je 0x104329d
cmp dword [ebp - 0xa44], 0
jle 0x1043291
push dword [ebp + 0x18]
push dword [eax]
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
mov dword [ebp - 0xa4c], eax
test eax, eax
jge 0x1043291
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0xa4c]
push dword [ebp - 0xa3c]
push 0x100d7b8
push edi
call fcn.01054776
add esp, 0x10
push dword [ebp - 0xa38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x104354f
push dword [ebp - 0xa38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xa3c]
call esi
test eax, eax
jne 0x10432eb
call ebx
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
push dword [ebp - 0xa3c]
push 0x100d738
push edi
call fcn.01054776
add esp, 0x10
jmp 0x104354f
call ebx
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
push dword [ebp - 0xa3c]
push 0x100d6b8
jmp 0x10432c2
mov eax, dword [ebp - 0xa40]
xor ecx, ecx
mov dword [ebp - 0xa3c], eax
mov dword [ebp - 0xa38], ecx
mov dword [ebp - 0xa44], ecx
cmp dword [ebp - 0xa48], ecx
jbe 0x10433ed
mov edx, dword [ebp - 0xa40]
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x104332b
cmp ax, 0x2f
jne 0x10433d4
mov eax, dword [ebp - 0xa3c]
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
push dword [ebp - 0xa3c]
lea eax, [ebp - 0x414]
push 0x104
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10433a7
cmp byte [ebp + 0xc], 0
jne 0x10434af
call ebx
cmp eax, 2
jne 0x10433af
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10433af
call ebx
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x100d658
jmp 0x10432c2
test al, 0x10
je 0x10434ba
inc dword [ebp - 0xa38]
lea eax, [ebp - 0x414]
push eax
call esi
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [ebp - 0xa44]
lea eax, [eax + ecx*2 + 2]
mov dword [ebp - 0xa3c], eax
mov ecx, dword [ebp - 0xa44]
inc ecx
mov dword [ebp - 0xa44], ecx
cmp ecx, dword [ebp - 0xa48]
jb 0x1043311
mov eax, dword [ebp - 0xa38]
test eax, eax
jbe 0x104340c
mov dword [ebp - 0xa38], eax
push 0x100d64c
call esi
dec dword [ebp - 0xa38]
jne 0x10433fd
push dword [ebp - 0xa40]
lea eax, [ebp - 0x824]
push 0x104
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
cmp byte [ebp + 0xc], 0
jne 0x1043445
push 0x100d56c
lea eax, [ebp - 0x824]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
xor eax, eax
xor ecx, ecx
cmp byte [ebp + 0xc], cl
push eax
setne cl
push edi
inc ecx
inc ecx
cmp byte [ebp + 0xc], al
push ecx
push eax
push eax
setne al
dec eax
and eax, 0x40000000
or eax, 0x80000000
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa38], eax
cmp eax, 0xffffffff
jne 0x10434da
cmp byte [ebp + 0xc], 0
je 0x1043491
call ebx
cmp eax, 2
je 0x10430cd
call ebx
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
push dword [ebp - 0xa40]
push 0x100d600
jmp 0x10432c2
lea eax, [ebp - 0x414]
jmp 0x10430d3
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa40]
push 0x100d578
jmp 0x10432c2
lea eax, [ebp - 0x20c]
push eax
call esi
cmp byte [ebp + 0xc], 0
jne 0x1043534
push dword [ebp - 0xa40]
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 0xa38]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebp + 0x10]
sub esp, 0x204
mov edi, esp
mov dword [ebp - 0xa30], eax
mov ecx, 0x84
lea esi, [ebp - 0xa34]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x108e32c
call fcn.01042ba8
mov eax, dword [ebp - 0xa38]
jmp 0x1043552
push edx
push 0x100d398
push 0x80
call fcn.01054776
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01034b69
leave
ret 0x14