Function at 0x100278d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cdd8
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.10027b60
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 0x10027950
cmp dword [ebp - 0x11c], 0x10
mov cx, word [0x10053444]
mov eax, dword [ebp - 0x130]
mov word [edi], cx
jae 0x10027977
lea eax, [ebp - 0x130]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027980
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10027990
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 0x100279b1
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.10029b20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jae 0x10027a1f
lea ecx, [ebp - 0x130]
push 1
lea esi, [ebp - 0x1d8]
call fcn.10005c90
test eax, eax
jne 0x10027a55
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 0x10027a76
or eax, 4
jmp 0x10027a76
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.100079b0
cmp dword [ebp - 0x184], 0
je 0x10027ab3
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
push 0xa
lea ecx, [ebp + ecx - 0x1e8]
call fcn.10006450
movzx ecx, al
push ecx
lea edx, [ebp - 0x1e8]
push edx
mov ecx, ebx
call fcn.1000c4c0
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.10005d30
test eax, eax
jne 0x10027aed
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 0x10027ae5
or eax, 4
push 0
push eax
call fcn.100079b0
cmp dword [ebx + 0x10], 0
jne 0x10027b01
push 2
push 0x100536b8
mov ecx, ebx
call fcn.100028b0
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 1
call fcn.10004e60
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 0x10027b40
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