Function at 0x10027860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cfa8
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.10027af0
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 0x100278e0
cmp dword [ebp - 0x11c], 0x10
mov cx, word [0x10053424]
mov eax, dword [ebp - 0x130]
mov word [edi], cx
jae 0x10027907
lea eax, [ebp - 0x130]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027910
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10027920
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 0x10027941
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 0x100534f8
mov ecx, ebx
mov byte [ebx], 0
call fcn.100028b0
lea eax, [ebp - 0x1e8]
push eax
mov dword [ebp - 0x134], 1
call fcn.10029a80
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jae 0x100279af
lea ecx, [ebp - 0x130]
push 1
lea esi, [ebp - 0x1d8]
call fcn.10005c40
test eax, eax
jne 0x100279e5
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 0x10027a06
or eax, 4
jmp 0x10027a06
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.100076a0
cmp dword [ebp - 0x184], 0
je 0x10027a43
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
push 0xa
lea ecx, [ebp + ecx - 0x1e8]
call fcn.10006330
movzx ecx, al
push ecx
lea edx, [ebp - 0x1e8]
push edx
mov ecx, ebx
call fcn.1000c320
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.10005ce0
test eax, eax
jne 0x10027a7d
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 0x10027a75
or eax, 4
push 0
push eax
call fcn.100076a0
cmp dword [ebx + 0x10], 0
jne 0x10027a91
push 2
push 0x10053690
mov ecx, ebx
call fcn.100028b0
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 1
call fcn.10004e10
lea ecx, [ebp - 0x180]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100344ed
add esp, 4
cmp dword [ebp - 0x11c], edi
jb 0x10027ad0
mov edx, dword [ebp - 0x130]
push edx
call fcn.10032f50
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.10034eea
mov esp, ebp
pop ebp
ret