Function at 0x4351b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x4bb050]
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.0045bd20
push 0x114
lea eax, [ebp - 0x454]
push 0
push eax
call fcn.0045bd20
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0045bd20
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43523a
mov esi, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x450]
mov byte [ebp - 0x20e], al
jmp 0x435328
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0045dec5
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.004350d0
add esp, 0x10
test al, al
jne 0x435299
mov esi, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x450]
mov byte [ebp - 0x20e], al
jmp 0x435328
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.0045bd20
push 0x114
lea eax, [ebp - 0x340]
push 0
push eax
call fcn.0045bd20
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 str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43545c
push str.RtlGetNtVersionNumbers
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435445
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 0x435468
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x338]
xor al, al
mov edx, dword [ebp - 0x33c]
jmp 0x43546e
mov ecx, dword [ebp - 0x338]
mov edx, dword [ebp - 0x33c]
mov al, byte [ebp - 0x20d]
cmp byte [ebp - 0x20e], 0
pop ebx
jne 0x43548c
test al, al
jne 0x43548c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a329
mov esp, ebp
pop ebp
ret
cmp edi, edx
ja 0x4354c1
jb 0x4354a6
cmp esi, ecx
ja 0x4354c1
jb 0x4354a6
mov eax, dword [ebp - 0x448]
cmp eax, dword [ebp - 0x334]
ja 0x4354c1
mov ecx, 0x45
lea esi, [ebp - 0x67c]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x340]
jmp 0x4354da
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 0x435500
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 0x435519
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.0045a329
mov esp, ebp
pop ebp
ret