Function at 0x415030
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get disk information
Get file attributes
Query environment variable

Disassembly:
mov eax, dword [0x456ad8]
test eax, 0x10000
jne 0x41505a
or eax, 0x10000
mov dword [0x456ad8], eax
call fcn.00410b10
call fcn.0040e690
call fcn.0040ab60
jmp 0x415060
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x87c
mov eax, dword [0x464504]
mov dword [esp + 4], 0
mov dword [0x45d758], 0x2a
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], str.HostFiles.Init
mov dword [0x464504], eax
push 0x45709c
call fcn.004096d0
add esp, 4
lea edi, [esp + 0x14]
mov dword [0x45d754], eax
push 0x104
push edi
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push 0x45d778
push edi
call fcn.00415df0
add esp, 8
push 0x104
push 0x45d778
call fcn.00410b50
add esp, 8
mov ecx, dword [0x45d754]
mov dword [ecx + 4], eax
mov dword [eax + 0x214], 0
push 0x45d778
call fcn.00401c00
add esp, 4
mov esi, eax
lea eax, [esp + 0x21c]
mov dword [esp], esi
mov dword [0x45d980], esi
push eax
push edi
call sub.KERNEL32.dll_FindFirstFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x41513e
lea eax, [esp + 0x248]
push 0x104
push 0x45e860
push eax
call fcn.00401e00
add esp, 0xc
push edi
call sub.KERNEL32.dll_FindClose
jmp 0x41520b
inc esi
xor edi, edi
mov dword [esp], esi
jmp 0x415159
mov word [eax + eax + 0x45e860], bx
inc edi
lea ebx, [esi + edi]
cmp ebx, 0x104
mov eax, ebx
jb 0x41518e
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x74f
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
cmp word [esp + eax*2 + 0x14], 0
je 0x415206
cmp ebx, 0x104
jb 0x4151c6
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x750
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor ebx, ebx
movzx ebx, word [esp + ebx*2 + 0x14]
cmp edi, 0x104
mov eax, edi
jb 0x415150
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x750
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
jmp 0x415150
add esi, edi
mov dword [esp], esi
mov esi, 0xffffffff
xor edi, edi
jmp 0x41522f
movzx eax, word [eax + eax + 0x45e860]
cmp eax, 0x2e
cmove esi, edi
inc edi
cmp edi, 0x104
mov eax, edi
jb 0x415261
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x757
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
cmp word [eax + eax + 0x45e860], 0
je 0x4152a0
cmp edi, 0x104
mov eax, edi
jb 0x415220
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x758
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
jmp 0x415220
test esi, esi
mov dword [esp], edi
jle 0x4152e1
cmp esi, 0x104
jb 0x4152d7
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x75e
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor esi, esi
mov word [esi + esi + 0x45e860], 0
call sub.KERNEL32.dll_GetCommandLineW
mov esi, eax
lea ebx, [esp + 0x674]
lea ebp, [esp + 0x46c]
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], esi
nop word cs:[eax + eax]
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00415f50
add esp, 0x10
push str._USE
push ebx
call fcn.00401cd0
add esp, 8
test eax, eax
jne 0x4153e0
mov edi, ebx
push ebx
lea esi, [esp + 0x18]
push esi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00415f50
add esp, 0x10
push 0x102
mov ebx, ebp
push ebp
push esi
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x415385
cmp eax, 0x103
jge 0x415385
push 0x104
lea eax, [esp + 0x18]
push eax
mov ebp, ebx
push ebp
call fcn.00401e00
jmp 0x415397
push 0x208
lea eax, [esp + 0x18]
push eax
mov ebp, ebx
push ebp
call fcn.0041ff00
add esp, 0xc
mov esi, dword [esp + 8]
mov ebx, edi
push ebp
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4153b0
and eax, 0x10
jne 0x4153f5
movzx eax, word [esp + 0x16]
cmp eax, 0x3a
jne 0x4153e0
movzx eax, word [esp + 0x18]
test ax, ax
je 0x4153d4
movzx eax, ax
cmp eax, 0x5c
jne 0x4153e0
cmp word [esp + 0x1a], 0
jne 0x4153e0
push ebp
call sub.KERNEL32.dll_GetDriveTypeW
cmp eax, 1
ja 0x4153f5
nop
mov eax, dword [esp]
movzx eax, word [esi + eax*2]
cmp eax, 0x20
jae 0x415310
jmp 0x4154e1
lea eax, [esp + 0x14]
push eax
call fcn.00401c00
add esp, 4
mov esi, eax
lea edi, [esi - 1]
mov dword [esp], esi
cmp edi, 0x104
mov eax, edi
jb 0x41543c
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x778
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
movzx eax, word [esp + eax*2 + 0x14]
cmp eax, 0x2f
je 0x415482
cmp edi, 0x104
mov eax, edi
jb 0x415478
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x778
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
movzx eax, word [esp + eax*2 + 0x14]
cmp eax, 0x5c
jne 0x4154c0
cmp edi, 0x104
mov eax, edi
mov dword [esp], edi
jb 0x4154b7
push 0x464504
push 0xfffffffffffffff9
call fcn.00401380
add esp, 8
push 0x77a
push str.HostFiles.c
push 0x43d25a
call fcn.00424f0d
add esp, 0xc
xor eax, eax
mov esi, edi
mov word [esp + eax*2 + 0x14], 0
push 0x104
lea eax, [esp + 0x18]
push eax
call fcn.00410b50
add esp, 8
mov ecx, dword [0x45d754]
mov dword [ecx + 4], eax
mov dword [eax + 0x214], esi
lea eax, [esp + 0x14]
mov esi, eax
push esi
push 0x104
call sub.KERNEL32.dll_GetTempPathW
push 0x104
push esi
call fcn.00410b50
add esp, 8
mov ecx, dword [0x45d754]
mov dword [ecx], eax
push dword [0x45d754]
call fcn.0040e5f0
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [0x464504], eax
add esp, 0x87c
pop esi
pop edi
pop ebx
pop ebp
ret