Function at 0x10027a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cda8
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x130], al
push 0x30
lea esi, [ebp - 0x130]
mov dword [ebp - 4], 1
call fcn.10027c90
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x114]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10027a80
cmp dword [ebp - 0x11c], 0x10
mov cx, word [0x10053434]
mov eax, dword [ebp - 0x130]
mov word [edi], cx
jae 0x10027aa7
lea eax, [ebp - 0x130]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027ab0
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10027ac0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x114]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027ae1
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.100028b0
push 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push 0x10053510
mov ecx, ebx
mov byte [ebx], 0
call fcn.100028b0
lea eax, [ebp - 0x1e8]
push eax
mov dword [ebp - 0x134], 1
call fcn.10029c80
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jae 0x10027b4f
lea ecx, [ebp - 0x130]
push 1
lea esi, [ebp - 0x1d8]
call fcn.10005d00
test eax, eax
jne 0x10027b85
mov ecx, dword [ebp - 0x1e8]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x1dc]
lea ecx, [ebp + ecx - 0x1e8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10027ba6
or eax, 4
jmp 0x10027ba6
mov edx, dword [ebp - 0x1e8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1b0]
lea ecx, [ebp + ecx - 0x1e8]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.10007c00
cmp dword [ebp - 0x184], 0
je 0x10027be3
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
push 0xa
lea ecx, [ebp + ecx - 0x1e8]
call fcn.100063a0
movzx ecx, al
push ecx
lea edx, [ebp - 0x1e8]
push edx
mov ecx, ebx
call fcn.1000c740
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.10005da0
test eax, eax
jne 0x10027c1d
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1dc]
lea ecx, [ebp + ecx - 0x1e8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10027c15
or eax, 4
push 0
push eax
call fcn.10007c00
cmp dword [ebx + 0x10], 0
jne 0x10027c31
push 2
push 0x100536a8
mov ecx, ebx
call fcn.100028b0
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 1
call fcn.10004ea0
lea ecx, [ebp - 0x180]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1003431d
add esp, 4
cmp dword [ebp - 0x11c], edi
jb 0x10027c70
mov edx, dword [ebp - 0x130]
push edx
call fcn.10032d80
add esp, 4
mov eax, ebx
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.10034d1a
mov esp, ebp
pop ebp
ret