Function at 0x73170060
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x731f70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x348]
mov ebx, ecx
push eax
push 0xffffffffffffffff
xor esi, esi
push ebx
push esi
push esi
mov dword [ebp - 0x9b8], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x348]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x731700b9
lea edi, [ebp - 0x348]
jmp 0x731700bc
add edi, 2
push edi
mov dword [ebp - 0x9b0], edi
call dword [sym.imp.msvcrt.dll__wcslwr]
add esp, 4
lea ecx, [ebp - 0xa24]
call fcn.7316f6d0
test eax, eax
je 0x7317058c
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ebx
mov dword [ebp - 0x9ac], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x9bc], eax
cmp eax, 0xffffffff
jne 0x73170223
test ebx, ebx
je 0x7317058c
mov esi, 0x104
mov eax, ebx
lea esp, [esp]
cmp byte [eax], 0
je 0x7317012b
inc eax
sub esi, 1
jne 0x73170120
test esi, esi
je 0x7317058a
push 0x104
lea eax, [ebp - 0x140]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [esi - 0x104]
add esp, 0xc
neg esi
sbb esi, esi
and esi, eax
lea eax, [ebp - 0x140]
add esi, 0x102
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x7317058a
mov ecx, 0x104
lea eax, [ebp - 0x140]
lea esp, [esp]
cmp byte [eax], 0
je 0x7317018b
inc eax
sub ecx, 1
jne 0x73170180
mov edi, 0x104
mov esi, ecx
mov eax, edi
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x731701b8
push ecx
push 0x73155110
push ecx
mov edx, edi
lea ecx, [ebp - 0x140]
sub edx, esi
add ecx, esi
call fcn.7316f680
mov ecx, edi
lea eax, [ebp - 0x140]
cmp byte [eax], 0
je 0x731701cb
inc eax
sub ecx, 1
jne 0x731701c0
mov eax, edi
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x731701ef
push ecx
push ebx
push ecx
sub edi, esi
lea ecx, [ebp - 0x140]
add ecx, esi
mov edx, edi
call fcn.7316f680
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x9bc], eax
cmp eax, 0xffffffff
je 0x7317058a
mov edi, dword [ebp - 0x9b0]
mov esi, dword [ebp - 0xa04]
lea ecx, [ebp - 0x9ac]
push 0
push 0
push ecx
push eax
mov ecx, esi
call dword [0x731fd4e8]
call esi
test eax, eax
je 0x73170576
push dword [ebp - 0x9ac]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x9b4], eax
test eax, eax
je 0x73170576
mov esi, dword [ebp - 0xa04]
xor ebx, ebx
push ebx
push eax
lea eax, [ebp - 0x9ac]
mov dword [ebp - 0x9b0], 0
push eax
push dword [ebp - 0x9bc]
mov ecx, esi
mov dword [ebp - 0x358], 0xf750e6c3
mov dword [ebp - 0x354], 0x11d138ee
mov dword [ebp - 0x350], 0xc000e585
mov dword [ebp - 0x34c], 0xee95c24f
call dword [0x731fd4e8]
call esi
test eax, eax
je 0x731702e6
mov esi, dword [ebp - 0xa08]
lea eax, [ebp - 0x9b0]
push eax
push ebx
push dword [ebp - 0x9ac]
mov ecx, esi
push dword [ebp - 0x9b4]
push dword [ebp - 0xa18]
call dword [0x731fd4e8]
call esi
mov ebx, eax
push 0x34
lea eax, [ebp - 0xa58]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x440
lea eax, [ebp - 0x9a8]
mov dword [ebp - 0xa58], 0x34
push 0
push eax
mov dword [ebp - 0xa4c], 2
mov dword [ebp - 0xa48], 0
mov dword [ebp - 0xa44], 2
mov dword [ebp - 0xa3c], 3
mov dword [ebp - 0xa54], eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x9e8]
mov dword [ebp - 0x9a8], 0x440
mov dword [ebp - 0xa40], eax
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x9e8], 0x28
mov dword [ebp - 0x9e4], eax
mov dword [ebp - 0x9e0], eax
mov dword [ebp - 0x9d8], eax
mov dword [ebp - 0x9d4], eax
mov dword [ebp - 0x9c8], eax
mov dword [ebp - 0x9c4], eax
mov eax, dword [ebp - 0x9b4]
mov dword [ebp - 0x9d0], eax
mov eax, dword [ebp - 0x9ac]
mov dword [ebp - 0x9cc], eax
mov dword [ebp - 0x9dc], edi
test ebx, ebx
je 0x7317056a
push 0x20c
lea eax, [ebp - 0x568]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x9f4]
lea eax, [ebp - 0x568]
add esp, 0xc
mov dword [ebp - 0x568], 0x20c
mov ecx, esi
push 0
push eax
push ebx
call dword [0x731fd4e8]
call esi
test eax, eax
je 0x7317041e
mov esi, dword [ebp - 0x9ec]
lea eax, [ebp - 0x564]
mov dword [ebp - 0x9e0], eax
mov ecx, esi
lea eax, [ebp - 0xa58]
push eax
lea eax, [ebp - 0x358]
push eax
push 0
call dword [0x731fd4e8]
call esi
test eax, eax
je 0x7317045e
mov esi, dword [ebp - 0xa08]
lea eax, [ebp - 0x9b0]
push eax
push 0
push dword [ebp - 0x9ac]
mov ecx, esi
mov dword [ebp - 0x9b0], ebx
push dword [ebp - 0x9b4]
push dword [ebp - 0xa18]
call dword [0x731fd4e8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x731703b0
jmp 0x7317056a
mov esi, dword [ebp - 0xa0c]
lea eax, [ebp - 0x564]
push 0
push 0
push 0
push 4
push eax
mov ecx, esi
mov dword [ebp - 0x9b8], 1
call dword [0x731fd4e8]
call esi
mov esi, dword [ebp - 0xa10]
mov ecx, esi
push 0x73155134
push eax
mov dword [ebp - 0x9c0], eax
call dword [0x731fd4e8]
call esi
test eax, eax
je 0x73170537
push 0
push 0
push 0x32
lea ecx, [ebp - 0x38]
push ecx
push 0xffffffffffffffff
push dword [eax + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [ebp - 0x38], 0
lea edi, [ebp - 0x38]
je 0x731704fc
mov esi, 0x7315514c
mov eax, edi
sub esi, eax
mov eax, edi
mov cl, 0x3a
lea ebx, [ebx]
mov edx, eax
cmp byte [eax], cl
jne 0x731704f1
mov cl, byte [edx + esi + 1]
inc eax
test cl, cl
jne 0x731704e0
jmp 0x731704fe
test cl, cl
je 0x731704fe
inc edi
dec esi
cmp byte [edi], 0
jne 0x731704d6
xor edi, edi
inc edi
push edi
mov byte [edi + 4], 0
call dword [sym.imp.msvcrt.dll_atoi]
mov esi, eax
mov byte [edi + 7], 0
lea eax, [edi + 5]
shl esi, 0x10
push eax
call dword [sym.imp.msvcrt.dll_atoi]
shl eax, 8
or esi, eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
add esp, 0xc
or esi, eax
mov dword [ebp - 0x9b8], esi
push dword [ebp - 0x9c0]
mov esi, dword [ebp - 0xa14]
mov ecx, esi
call dword [0x731fd4e8]
call esi
test ebx, ebx
je 0x7317056a
mov esi, dword [ebp - 0x9f8]
mov ecx, esi
push 0
push ebx
push dword [ebp - 0xa18]
call dword [0x731fd4e8]
call esi
push dword [ebp - 0x9b4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x9bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x9b8]
jmp 0x7317058c
xor esi, esi
cmp dword [ebp - 0xa24], 0
je 0x731705dc
mov esi, dword [ebp - 0x9fc]
mov ecx, esi
push 0
push dword [ebp - 0xa18]
call dword [0x731fd4e8]
call esi
push dword [ebp - 0xa20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0xa1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x9b8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.731efbf0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.731efbf0
mov esp, ebp
pop ebp
ret