Function at 0x481775
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
push edi
mov dword [ebp - 0x5cc], ecx
call fcn.00480f00
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.004823e0
mov ecx, dword [ebp - 0xc]
call fcn.004824a0
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4817b2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jge 0x481a4d
mov word [ebp - 0x21c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00482450
test eax, eax
jne 0x4817f6
jmp 0x4817a9
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x481818
mov dword [ebp - 0x5d0], 0
jmp 0x48185f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
add eax, 3
and al, 0xfc
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x5d4], esp
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x5d4]
push eax
call fcn.004153c0
mov dword [ebp - 0x5d0], eax
mov ecx, dword [ebp - 0x5d0]
mov dword [ebp - 0x220], ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x220], 0
je 0x481a48
push 0x555620
mov eax, dword [ebp - 0x220]
push eax
call fcn.00402980
add esp, 8
test eax, eax
je 0x481a48
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x5cc]
call fcn.00481a5f
test eax, eax
je 0x481a48
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x5cc]
add ecx, 4
call fcn.004824c0
mov byte [ebp - 0x32c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x32b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x220]
push eax
push 0x104
lea ecx, [ebp - 0x32c]
push ecx
call fcn.00415330
mov byte [ebp - 0x434], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
mov eax, dword [ebp - 0x220]
push eax
call fcn.0040a130
add esp, 8
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x330], 0
cmp dword [ebp - 0x438], 0
je 0x481a0f
mov ecx, dword [ebp - 0x438]
sub ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x481a0f
cmp dword [ebp - 0x438], 0
je 0x481a0f
push str.mapi32.dll
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x481a0f
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x45c], 2
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x440], 0
lea edx, [ebp - 0x32c]
push edx
push 0x104
lea eax, [ebp - 0x5c4]
push eax
call fcn.00415330
mov dword [ebp - 0x5c8], 0
lea ecx, [ebp - 0x5c8]
push ecx
lea edx, [ebp - 0x5c4]
push edx
mov ecx, 0x555c48
call fcn.00416dd0
mov dword [ebp - 0x330], 1
cmp dword [ebp - 0x330], 0
je 0x481a31
mov eax, dword [ebp + 0xc]
push eax
push 0x6c
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x5cc]
push edx
call dword [ebp + 8]
jmp 0x481a48
mov eax, dword [ebp + 0xc]
push eax
push 0x6d
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x5cc]
push edx
call dword [ebp + 8]
jmp 0x4817a9
mov eax, 1
lea esp, [ebp - 0x5d8]
pop edi
mov esp, ebp
pop ebp
ret 8