Function at 0x480520
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
mov dword [ebp - 0x23c], ebx
call esi
test eax, eax
je 0x48140e
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 9
push ebx
call edi
test eax, eax
je 0x480591
mov ecx, 0x20
nop dword [eax]
push 9
push ebx
mov word [eax], cx
call edi
mov ecx, 0x20
test eax, eax
jne 0x480580
push ebx
call esi
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push ebx
mov dword [ebp - 0x240], edi
call esi
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
mov dword [ebp - 0x224], eax
call esi
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov edx, edi
mov dword [ebp - 0x228], eax
mov ecx, ebx
call fcn.00474a90
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 4
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
mov edx, edi
mov esi, dword [sym.imp.USER32.dll_CharUpperW]
call fcn.00474a90
add esp, 4
test eax, eax
je 0x4813f5
cmp dword [ebp - 0x22c], 0
jne 0x481237
push 0x420700
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x48065a
push dword [ebp - 0x224]
mov dword [0x5e95c8], 2
push dword [ebp - 0x228]
mov dword [ebp - 0x22c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 0x420704
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x480695
push dword [ebp - 0x224]
mov dword [0x5e95c8], 1
push dword [ebp - 0x228]
mov dword [ebp - 0x22c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
movzx eax, word [edi]
cmp eax, 0x2f
je 0x4806a6
cmp eax, 0x2d
jne 0x481237
test ax, ax
je 0x4806f6
push eax
push 0x420708
mov esi, edi
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
je 0x4806d7
nop dword [eax]
movzx eax, word [esi + 2]
add esi, 2
push eax
push 0x420708
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
jne 0x4806c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push edi
call fcn.005830d0
mov esi, dword [sym.imp.USER32.dll_CharUpperW]
add esp, 0xc
push 0x420710
push edi
call ebx
test eax, eax
je 0x481216
push 0x42071c
push edi
call ebx
test eax, eax
je 0x481216
push 0x420720
push edi
call ebx
test eax, eax
je 0x481216
push 0x42072c
push edi
call ebx
test eax, eax
je 0x4811f5
push 0x42073c
push edi
call ebx
test eax, eax
je 0x4811f5
push 0x420740
push edi
call ebx
test eax, eax
je 0x4811d4
push 0x420754
push edi
call ebx
test eax, eax
je 0x4811d4
push 0x42076c
push edi
call ebx
test eax, eax
je 0x4811b3
push 0x420778
push edi
call ebx
test eax, eax
je 0x4811b3
push 0x420784
push edi
call ebx
test eax, eax
je 0x481192
push 0x420794
push edi
call ebx
test eax, eax
je 0x481192
push 0x4207a8
push edi
call ebx
test eax, eax
je 0x481192
push 0x4207c4
push edi
call ebx
test eax, eax
je 0x481192
push 0x4207e4
push edi
call ebx
test eax, eax
je 0x481192
push 0x420804
push edi
call ebx
test eax, eax
je 0x481192
push 0x420824
push edi
call ebx
test eax, eax
je 0x481171
push 0x41dabc
push edi
call ebx
test eax, eax
je 0x481171
push 0x420830
push edi
call ebx
test eax, eax
jne 0x480833
push dword [ebp - 0x224]
mov dword [0x5e8f80], 2
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 0x420838
push edi
call ebx
test eax, eax
jne 0x480860
push dword [ebp - 0x224]
mov dword [0x5e8f80], 3
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 6
push 0x420840
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4808ce
push 0x20
lea eax, [edi + 0xc]
push eax
push 0x5e9a08
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x41bd94
push 0x5e9a08
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0x5e9a08
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne case.0x480938.64
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x41f2dc
push 0x5e9a08
call eax
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 7
push 0x420850
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x480926
push 8
lea eax, [edi + 0xe]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x41bd94
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push dword [ebp - 0x224]
xor eax, eax
cmp word [ebp - 0x14], 0x31
push dword [ebp - 0x228]
sete al
inc eax
mov dword [0x5e95b4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push edi
call esi
movzx eax, word [eax]
add eax, 0xffffffc1
cmp eax, 0x1b
ja case.0x480938.64
jmp dword [eax*4 + 0x481420]
mov dword [0x5e97e4], 0
mov dword [0x5e939c], 1
lea eax, [edi + 2]
push eax
call esi
push dword [ebp - 0x224]
xor ecx, ecx
push dword [ebp - 0x228]
cmp word [eax], 0x53
sete cl
mov dword [0x5e9d90], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov dword [0x5e97e4], 1
mov dword [0x5e939c], 0
jmp 0x480953
cmp word [edi + 2], 0x30
lea eax, [edi + 2]
je 0x480a00
push eax
call esi
cmp word [eax], 0x4f
je 0x480a00
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
push 0x104
push edi
push 0x5e8d50
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov ecx, 0x5e8d50
call fcn.00474a10
push 0x5e8d50
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x420860
push 0x5e8d50
call eax
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
movzx eax, word [edi + 2]
lea ecx, [edi + 2]
cmp eax, 0x30
je 0x480a47
cmp eax, 0x2d
je 0x480a47
push ecx
call esi
cmp word [eax], 0x4f
mov eax, 2
jne 0x480a4c
mov eax, 1
push dword [ebp - 0x224]
mov dword [0x5e9fa0], eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 4
push 0x420868
push edi
mov esi, edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x480b24
lea esi, [edi + 6]
add esi, 2
cmp word [esi], 0x30
je 0x480d15
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp word [eax], 0x4f
je 0x480d15
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp word [eax], 0x44
je 0x480cdd
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp word [eax], 0x53
je 0x480cdd
movzx eax, word [esi]
push eax
push 0x42087c
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
je 0x480c14
cmp word [esi], 0
mov dword [0x5e9a00], 1
mov dword [0x5e9a54], 0
je case.0x480938.64
mov ebx, 0x40
nop dword [eax]
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [eax]
add eax, 0xffffffbe
cmp eax, 0x12
ja case.0x480b1d.67
movzx eax, byte [eax + 0x4814ac]
jmp dword [eax*4 + 0x481490]
push 3
push 0x420874
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x480b3e
lea esi, [edi + 4]
jmp 0x480a83
movzx ecx, word [edi + 2]
cmp ecx, 0x3a
jne 0x480b4f
lea esi, [edi + 2]
jmp 0x480a83
cmp dword [ebp - 0x238], 0
je 0x480a83
cmp ecx, 0x54
jne case.0x480938.64
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [0x5e9a54]
and eax, 0xffffffc3
or eax, 0x40
jmp 0x480bdf
mov eax, dword [0x5e9a54]
and eax, 0xffffffb7
or eax, 4
jmp 0x480bdf
mov eax, dword [0x5e9a54]
and eax, 0xffffffbb
or eax, 8
jmp 0x480bdf
mov eax, dword [0x5e9a54]
and eax, 0xffffff9f
or eax, 0x10
jmp 0x480bdf
mov eax, dword [0x5e9a54]
and eax, 0xffffffaf
or eax, 0x20
jmp 0x480bdf
mov eax, dword [0x5e9a54]
test eax, eax
cmove eax, ebx
or eax, 0x80
mov dword [0x5e9a54], eax
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], 0
jne 0x480b00
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
push 0x5efe30
push 0x5efe2c
push 0x5efe28
push 0x5efe24
push 0x5efe20
push 0x42088c
push edi
call fcn.00472e20
mov ecx, eax
add esp, 0x1c
cmp ecx, 4
je 0x480c66
cmp ecx, 5
jne case.0x480938.64
mov eax, dword [0x5efe28]
mov edx, SysReAllocString
cmp eax, 1
mov dword [0x5e9a00], 1
mov dword [0x5e9a54], 0
cmovl eax, edx
mov dword [0x5efe28], eax
mov eax, dword [0x5efe2c]
cmp eax, 1
cmovl eax, edx
mov edx, 1
mov dword [0x5efe2c], eax
mov eax, dword [0x5efe30]
test eax, eax
cmovne eax, edx
mov dword [0x5efe30], eax
cmp ecx, 4
jne case.0x480938.64
push dword [ebp - 0x224]
mov dword [0x5efe30], 0
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 0x4c
push esi
mov dword [0x5e9a00], 1
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
push dword [ebp - 0x224]
neg eax
push dword [ebp - 0x228]
sbb eax, eax
neg eax
add eax, 2
mov dword [0x5e9a54], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9a00], 1
push dword [ebp - 0x228]
mov dword [0x5e9a54], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
push 0x80
push edi
push 0x5e9a58
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push dword [ebp - 0x224]
mov dword [0x5e9d98], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e95c0], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b80], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
mov eax, dword [0x5e9a4c]
test eax, eax
je 0x480dfa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push dword [ebp - 0x224]
mov dword [0x5e9a4c], eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
push 0x5e8f84
push 0x5e97f0
push 0x4208ac
push edi
call fcn.00472e20
add esp, 0x10
cmp eax, 1
je 0x480e5e
cmp eax, 2
jne case.0x480938.64
push dword [ebp - 0x224]
mov dword [0x5e9b8c], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push 0x2d
push edi
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
mov eax, 1
push 0x52
push edi
cmovne esi, eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
mov ecx, 1
mov eax, 0
push 0x42
cmovne eax, ecx
push edi
mov dword [ebp - 0x230], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
mov ecx, 1
mov eax, 0
mov edx, edi
cmovne eax, ecx
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x224]
mov ecx, eax
push eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
mov eax, dword [0x5e95ac]
test eax, eax
je 0x480efb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [0x5e95ac], eax
mov eax, 1
mov dword [0x5e9b88], 1
test esi, esi
je 0x480f29
mov dword [0x5e9b88], 3
mov eax, 3
cmp dword [ebp - 0x230], 0
je 0x480f3a
or eax, 4
mov dword [0x5e9b88], eax
cmp dword [ebp - 0x234], 0
je case.0x480938.64
push dword [ebp - 0x224]
and eax, 0xfffffffb
push dword [ebp - 0x228]
or eax, 8
mov dword [0x5e9b88], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
movzx eax, word [edi + 2]
lea ecx, [edi + 2]
cmp eax, 0x30
je 0x480f88
cmp eax, 0x2d
je 0x480f88
push ecx
call esi
cmp word [eax], 0x4f
mov eax, 2
jne 0x480f8d
mov eax, 1
push dword [ebp - 0x224]
mov dword [0x5e95dc], eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b58], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
test eax, eax
je case.0x480938.64
mov eax, dword [0x5e95b8]
test eax, eax
je 0x480ff5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push dword [ebp - 0x224]
mov dword [0x5e95b8], eax
push dword [ebp - 0x228]
mov dword [0x5e9b70], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [0x5e95b8]
test eax, eax
je 0x48103c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x5e95b8], 0
push dword [ebp - 0x224]
mov dword [0x5e9fb4], 0
push dword [ebp - 0x228]
mov dword [0x5e9b70], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [0x5e95b8]
test eax, eax
je 0x481081
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x5e95b8], 0
push dword [ebp - 0x224]
mov dword [0x5e9fb4], 0x22
push dword [ebp - 0x228]
mov dword [0x5e9b70], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [0x5e95b8]
test eax, eax
je 0x4810c6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x5e95b8], 0
push dword [ebp - 0x224]
mov dword [0x5e9fb4], 0x23
push dword [ebp - 0x228]
mov dword [0x5e9b70], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b5c], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov eax, dword [ebp - 0x224]
mov edx, edi
push eax
mov ecx, eax
call fcn.00474a90
add esp, 4
mov dword [0x5e95c8], 1
mov dword [ebp - 0x238], 1
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e97e8], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e8f80], 1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b78], 5
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b78], 4
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b78], 3
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x224]
mov dword [0x5e9b78], 2
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
mov dword [0x5e9b78], 1
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4805f1
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 0x228]
mov ebx, eax
mov dword [ebp - 0x230], ebx
call esi
push dword [ebp - 0x23c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, esi
mov dword [0x5e97f4], eax
mov eax, dword [0x5e95a8]
test eax, eax
je 0x48128a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x20c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x104
push dword [ebp - 0x228]
mov dword [0x5e95a8], eax
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [0x5e95a8]
push 0x2f
push eax
mov dword [ebp - 0x234], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x481311
mov edi, dword [ebp - 0x234]
mov ebx, 0x5c
push esi
push edi
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x3a
jne 0x4812f3
push esi
call dword [sym.imp.USER32.dll_CharNextW]
cmp word [eax], 0x2f
jne 0x4812f3
add esi, 4
jmp 0x4812f6
mov word [esi], bx
push 0x2f
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
jne 0x4812d3
mov edi, dword [ebp - 0x240]
mov ebx, dword [ebp - 0x230]
push dword [0x5e95a8]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x481385
push dword [0x5e95a8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x481385
push dword [0x5e95a8]
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
jne 0x481385
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x220]
push 0x5e97f8
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push dword [0x5e95a8]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
push dword [0x5e95a8]
call esi
push 0x41f998
push dword [0x5e95a8]
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
cmp dword [0x5e9b60], 0x20
jge 0x4813ea
mov esi, dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov edi, dword [ebp - 0x228]
nop dword [eax + eax]
push edi
mov edx, ebx
mov ecx, edi
call fcn.00474a90
add esp, 4
test eax, eax
je 0x4813e4
push ebx
call esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov ecx, dword [0x5e9b60]
mov dword [ecx*4 + 0x5ed340], eax
inc ecx
mov dword [0x5e9b60], ecx
cmp ecx, 0x20
jl 0x4813b0
mov edi, dword [ebp - 0x240]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
jmp 0x4813fb
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call ebx
push dword [ebp - 0x224]
call ebx
push dword [ebp - 0x228]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
mov esp, ebp
pop ebp
ret