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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f0
push edi
mov dword [ebp - 0x6e8], ecx
call fcn.00478bb0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.0047a090
mov ecx, dword [ebp - 0xc]
call fcn.0047a150
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x479462
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jge 0x4796fd
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.0047a100
test eax, eax
jne 0x4794a6
jmp 0x479459
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4794c8
mov dword [ebp - 0x6ec], 0
jmp 0x47950f
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 - 0x6f0], esp
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x6f0]
push eax
call fcn.00415570
mov dword [ebp - 0x6ec], eax
mov ecx, dword [ebp - 0x6ec]
mov dword [ebp - 0x220], ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x220], 0
je 0x4796f8
push 0x55a358
mov eax, dword [ebp - 0x220]
push eax
call fcn.00402b10
add esp, 8
test eax, eax
je 0x4796f8
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x6e8]
call fcn.0047970f
test eax, eax
je 0x4796f8
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x6e8]
add ecx, 4
call fcn.0047a170
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.004154e0
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.0040a2a0
add esp, 8
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x330], 0
cmp dword [ebp - 0x438], 0
je 0x4796bf
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 0x4796bf
cmp dword [ebp - 0x438], 0
je 0x4796bf
push str.mapi32.dll
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4796bf
mov dword [ebp - 0x570], 0
mov dword [ebp - 0x578], 2
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x440], 0
lea edx, [ebp - 0x32c]
push edx
push 0x104
lea eax, [ebp - 0x6e0]
push eax
call fcn.004154e0
mov dword [ebp - 0x6e4], 0
lea ecx, [ebp - 0x6e4]
push ecx
lea edx, [ebp - 0x6e0]
push edx
mov ecx, 0x55a980
call fcn.00416ee0
mov dword [ebp - 0x330], 1
cmp dword [ebp - 0x330], 0
je 0x4796e1
mov eax, dword [ebp + 0xc]
push eax
push 0x6c
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x6e8]
push edx
call dword [ebp + 8]
jmp 0x4796f8
mov eax, dword [ebp + 0xc]
push eax
push 0x6d
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x6e8]
push edx
call dword [ebp + 8]
jmp 0x479459
mov eax, 1
lea esp, [ebp - 0x6f4]
pop edi
mov esp, ebp
pop ebp
ret 8