Function at 0x4ea020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64af61
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x270]
push 0x104
push eax
mov dword [ebp - 0x2dc], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x270]
push 0x104
push eax
call fcn.0060e249
add esp, 0xc
mov dword [ebp - 0x2a0], 0
xor eax, eax
mov dword [ebp - 0x290], 0
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ea0b1
sub ecx, edx
lea eax, [ebp - 0x270]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.0042e850
lea eax, [ebp - 0x2dc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2d8], 0
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0
push eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2dc], 0
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004ea650
add esp, 0x14
test al, al
je 0x4ea322
mov eax, dword [ebp - 0x2d4]
mov edi, 0x2d
test eax, eax
jns 0x4ea14f
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00450650
mov word [eax - 2], di
lea ecx, [eax - 2]
jmp 0x4ea15b
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00450650
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2b8], ax
add esp, 8
lea eax, [ebp - 0x12]
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 7
cmp ecx, eax
je 0x4ea19d
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.0042e850
mov eax, dword [ebp - 0x2d8]
mov byte [ebp - 4], 1
test eax, eax
jns 0x4ea1c0
neg eax
push eax
lea eax, [ebp - 0x3e]
push eax
call fcn.00450650
mov word [eax - 2], di
lea ecx, [eax - 2]
jmp 0x4ea1cc
push eax
lea eax, [ebp - 0x3e]
push eax
call fcn.00450650
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x288], 0
mov word [ebp - 0x288], ax
add esp, 8
lea eax, [ebp - 0x3e]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
cmp ecx, eax
je 0x4ea20e
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x288]
call fcn.0042e850
push 0x68f0d0
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00439860
add esp, 0xc
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 3
push ecx
push eax
push dword [ebp - 0x2e0]
mov ecx, esi
call fcn.0043aa30
lea ecx, [ebp - 0x2d0]
call fcn.0042f960
mov edx, dword [ebp - 0x274]
cmp edx, 8
jb 0x4ea291
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ea287
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ea371
push edx
push ecx
call fcn.00608415
add esp, 8
mov edx, dword [ebp - 0x2a4]
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
cmp edx, 8
jb 0x4ea2ee
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ea2e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ea371
push edx
push ecx
call fcn.00608415
add esp, 8
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x4ea354
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ea34a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ea371
jmp 0x4ea34a
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x68d90c
mov word [esi], ax
call fcn.0042e850
jmp 0x4ea2ee
push edx
push ecx
call fcn.00608415
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
call fcn.0060e0d0
int3