Function at 0x40b620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x44e018]
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.00418cc0
push 0x114
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.00418cc0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00418cc0
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40b6a7
mov esi, dword [ebp - 0x334]
xor bl, bl
mov edi, dword [ebp - 0x338]
jmp 0x40b78c
push 0x447068
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041fcdc
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.0040b540
add esp, 0x10
test al, al
jne 0x40b702
mov esi, dword [ebp - 0x334]
xor bl, bl
mov edi, dword [ebp - 0x338]
jmp 0x40b78c
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.00418cc0
push 0x114
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.00418cc0
add esp, 0x18
mov dword [ebp - 0x210], 0
xor bh, bh
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
push 0x447054
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b88c
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b88c
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 0x40b89e
mov edx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x44c]
test bl, bl
jne 0x40b8b9
test bh, bh
jne 0x40b8b9
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret
cmp edi, ecx
ja 0x40b8e8
jb 0x40b8cd
cmp esi, eax
ja 0x40b8e8
jb 0x40b8cd
cmp dword [ebp - 0x330], edx
ja 0x40b8e8
mov ecx, 0x45
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x450]
jmp 0x40b901
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 0x40b927
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 0x40b940
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.00416855
mov esp, ebp
pop ebp
ret