Function at 0x407760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x114
lea eax, [ebp - 0x568]
mov dword [ebp - 0x22c], edx
push 0
push eax
mov dword [ebp - 0x228], ecx
call fcn.00424350
push 0x114
lea eax, [ebp - 0x454]
push 0
push eax
call fcn.00424350
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00424350
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4077ea
mov esi, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x450]
mov byte [ebp - 0x20e], al
jmp 0x4078d8
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a005
xorps xmm0, xmm0
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x224]
movlpd qword [ebp - 0x224], xmm0
lea ecx, [ebp - 0x20c]
movlpd qword [ebp - 0x21c], xmm0
call fcn.00407680
add esp, 0x10
test al, al
jne 0x407849
mov esi, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x450]
mov byte [ebp - 0x20e], al
jmp 0x4078d8
movzx eax, word [ebp - 0x224]
movzx edi, word [ebp - 0x21c]
movzx esi, word [ebp - 0x21a]
mov dword [ebp - 0x564], eax
movzx eax, word [ebp - 0x222]
mov dword [ebp - 0x560], eax
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x55c], eax
xor eax, eax
mov word [ebp - 0x554], ax
movzx eax, word [ebp - 0x218]
mov dword [ebp - 0x448], eax
xor eax, eax
mov dword [ebp - 0x568], 0x114
mov dword [ebp - 0x558], 2
mov dword [ebp - 0x454], 0x114
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x444], 2
mov word [ebp - 0x440], ax
mov byte [ebp - 0x20e], 1
push ebx
push 0x114
lea eax, [ebp - 0x67c]
push 0
push eax
call fcn.00424350
push 0x114
lea eax, [ebp - 0x340]
push 0
push eax
call fcn.00424350
add esp, 0x18
mov dword [ebp - 0x218], 0
xor al, al
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x20d], al
mov dword [ebp - 0x214], 0
push 0x44ed78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407a0c
push str.RtlGetNtVersionNumbers
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4079f5
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
push ecx
call eax
movzx eax, word [ebp - 0x214]
push ebx
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x214]
xor ebx, ebx
mov edx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x334], eax
xor eax, eax
mov dword [ebp - 0x67c], 0x114
mov dword [ebp - 0x678], edx
mov dword [ebp - 0x674], ecx
mov dword [ebp - 0x66c], 2
mov word [ebp - 0x668], bx
mov dword [ebp - 0x340], 0x114
mov dword [ebp - 0x33c], edx
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x330], 2
mov word [ebp - 0x32c], ax
jmp 0x407a18
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x338]
xor al, al
mov edx, dword [ebp - 0x33c]
jmp 0x407a1e
mov ecx, dword [ebp - 0x338]
mov edx, dword [ebp - 0x33c]
mov al, byte [ebp - 0x20d]
cmp byte [ebp - 0x20e], 0
pop ebx
jne 0x407a3c
test al, al
jne 0x407a3c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422505
mov esp, ebp
pop ebp
ret
cmp edi, edx
ja 0x407a71
jb 0x407a56
cmp esi, ecx
ja 0x407a71
jb 0x407a56
mov eax, dword [ebp - 0x448]
cmp eax, dword [ebp - 0x334]
ja 0x407a71
mov ecx, 0x45
lea esi, [ebp - 0x67c]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x340]
jmp 0x407a8a
mov ecx, 0x45
lea esi, [ebp - 0x568]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x454]
mov eax, dword [ebp - 0x228]
lea edi, [ebp - 0x568]
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x407ab0
mov ecx, 0x45
lea esi, [ebp - 0x118]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x407ac9
mov ecx, 0x45
lea esi, [ebp - 0x568]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00422505
mov esp, ebp
pop ebp
ret