Function at 0x407760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x114
lea eax, [ebp - 0x564]
mov dword [ebp - 0x228], edx
push 0
push eax
mov dword [ebp - 0x224], ecx
call fcn.00424340
push 0x114
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.00424340
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00424340
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4077e7
mov esi, dword [ebp - 0x334]
xor bl, bl
mov edi, dword [ebp - 0x338]
jmp 0x4078cc
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00429ff5
xorps xmm0, xmm0
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x21c]
movlpd qword [ebp - 0x21c], xmm0
lea ecx, [ebp - 0x20c]
movlpd qword [ebp - 0x214], xmm0
call fcn.00407680
add esp, 0x10
test al, al
jne 0x407842
mov esi, dword [ebp - 0x334]
xor bl, bl
mov edi, dword [ebp - 0x338]
jmp 0x4078cc
movzx eax, word [ebp - 0x21c]
mov bl, 1
movzx edi, word [ebp - 0x214]
movzx esi, word [ebp - 0x212]
mov dword [ebp - 0x560], eax
movzx eax, word [ebp - 0x21a]
mov dword [ebp - 0x55c], eax
movzx eax, word [ebp - 0x218]
mov dword [ebp - 0x558], eax
xor eax, eax
mov word [ebp - 0x550], ax
movzx eax, word [ebp - 0x210]
mov dword [ebp - 0x330], eax
xor eax, eax
mov dword [ebp - 0x564], 0x114
mov dword [ebp - 0x554], 2
mov dword [ebp - 0x33c], 0x114
mov dword [ebp - 0x338], edi
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x32c], 2
mov word [ebp - 0x328], ax
push 0x114
lea eax, [ebp - 0x678]
push 0
push eax
call fcn.00424340
push 0x114
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.00424340
add esp, 0x18
mov dword [ebp - 0x210], 0
xor bh, bh
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
push 0x44ed88
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4079cc
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4079cc
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
call eax
movzx edx, word [ebp - 0x220]
xor edi, edi
mov ecx, dword [ebp - 0x210]
mov bh, 1
mov eax, dword [ebp - 0x218]
mov word [ebp - 0x664], di
mov word [ebp - 0x43c], di
mov edi, dword [ebp - 0x338]
mov dword [ebp - 0x678], 0x114
mov dword [ebp - 0x674], ecx
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x66c], edx
mov dword [ebp - 0x668], 2
mov dword [ebp - 0x450], 0x114
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x440], 2
jmp 0x4079de
mov edx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x44c]
test bl, bl
jne 0x4079f9
test bh, bh
jne 0x4079f9
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret
cmp edi, ecx
ja 0x407a28
jb 0x407a0d
cmp esi, eax
ja 0x407a28
jb 0x407a0d
cmp dword [ebp - 0x330], edx
ja 0x407a28
mov ecx, 0x45
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x450]
jmp 0x407a41
mov ecx, 0x45
lea esi, [ebp - 0x564]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x33c]
mov eax, dword [ebp - 0x224]
lea edi, [ebp - 0x564]
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x407a67
mov ecx, 0x45
lea esi, [ebp - 0x118]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x407a80
mov ecx, 0x45
lea esi, [ebp - 0x564]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f6
mov esp, ebp
pop ebp
ret