Function at 0x10027990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ce18
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.10027c20
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 0x10027a10
cmp dword [ebp - 0x11c], 0x10
mov cx, word [0x1005344c]
mov eax, dword [ebp - 0x130]
mov word [edi], cx
jae 0x10027a37
lea eax, [ebp - 0x130]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027a40
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10027a50
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 0x10027a71
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 0x10053520
mov ecx, ebx
mov byte [ebx], 0
call fcn.100028b0
lea eax, [ebp - 0x1e8]
push eax
mov dword [ebp - 0x134], 1
call fcn.10029bb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jae 0x10027adf
lea ecx, [ebp - 0x130]
push 1
lea esi, [ebp - 0x1d8]
call fcn.10005cb0
test eax, eax
jne 0x10027b15
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 0x10027b36
or eax, 4
jmp 0x10027b36
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.10007a90
cmp dword [ebp - 0x184], 0
je 0x10027b73
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
push 0xa
lea ecx, [ebp + ecx - 0x1e8]
call fcn.10006420
movzx ecx, al
push ecx
lea edx, [ebp - 0x1e8]
push edx
mov ecx, ebx
call fcn.1000c5d0
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.10005d50
test eax, eax
jne 0x10027bad
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 0x10027ba5
or eax, 4
push 0
push eax
call fcn.10007a90
cmp dword [ebx + 0x10], 0
jne 0x10027bc1
push 2
push 0x100536b8
mov ecx, ebx
call fcn.100028b0
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 1
call fcn.10004e50
lea ecx, [ebp - 0x180]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1003434d
add esp, 4
cmp dword [ebp - 0x11c], edi
jb 0x10027c00
mov edx, dword [ebp - 0x130]
push edx
call fcn.10032db0
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.10034d4a
mov esp, ebp
pop ebp
ret