Function at 0x40eea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cf1b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
mov dword [ebp - 0x220], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov cx, word [ebp - 0x218]
lea esi, [ebp - 0x228]
mov word [edi + 0x28], cx
call fcn.0040eda0
lea esi, [edi + 0x24]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov ebx, dword [esi]
lea eax, [ecx - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x224], esi
cmp eax, ebx
je 0x40ef63
cmp dword [ebx + 0xc], 0
jl 0x40ef59
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x40ef59
call fcn.00404b40
mov dword [ebp - 0x21c], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ef4c
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x40ef63
mov ebx, dword [ecx - 0xc]
push ecx
push esi
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x2c]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x40efb1
mov eax, 0x104
lea ecx, [edi + 0x2c]
call fcn.00404f20
mov eax, dword [edi + 0x2c]
push 0x15
push eax
call fcn.004119b0
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax - 8]
add esp, 8
test eax, eax
je 0x40efd7
push ecx
push eax
call fcn.004528bd
add esp, 8
test eax, eax
js 0x40f03e
mov ecx, dword [edi + 0x2c]
cmp eax, dword [ecx - 8]
jg 0x40f03e
mov dword [ecx - 0xc], eax
mov ecx, dword [edi + 0x2c]
xor edx, edx
mov word [ecx + eax*2], dx
call fcn.0040cb90
push str.ORMBackup
mov ecx, edi
mov dword [edi + 0x34], eax
lea esi, [edi + 0x18]
call fcn.0040d270
movzx eax, ax
push eax
push str._c:_s
mov edi, esi
call fcn.00404aa0
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x220]
push 0x479d80
push ecx
lea edi, [ebx + 0x20]
push str._s_s
mov dword [ebp - 0x220], edi
call fcn.00404aa0
mov esi, dword [esi]
add esp, 0x18
cmp dword [esi - 0xc], 0
jge 0x40f048
push 0x80070057
call fcn.004051c0
movzx eax, word [esi]
push eax
push str._c:ORMBackup
lea edi, [ebx + 0x30]
mov word [ebx + 0x2a], ax
call fcn.00404aa0
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
lea edi, [ebx + 0x3c]
push str._scache
mov dword [ebp - 0x21c], edi
call fcn.00404aa0
mov edx, dword [ebp - 0x224]
mov eax, dword [edx]
push eax
push str._scacheconfig.ini
lea edi, [ebx + 0x40]
call fcn.00404aa0
movzx ecx, word [ebx + 0x28]
push ecx
push str._c:ORMBootInst.exe
mov edi, ebx
call fcn.00404aa0
movzx edx, word [ebx + 0x28]
push edx
push str._c:ORMORM.ini
lea edi, [ebx + 4]
call fcn.00404aa0
movzx eax, word [ebx + 0x2a]
push eax
push str._c:ORMBackupOEM.ini
lea edi, [ebx + 8]
call fcn.00404aa0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx]
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
add esp, 0x30
push edx
push 0
call edi
mov eax, dword [ebx + 0x30]
push eax
push 0
call edi
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
push edx
push 0
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret