Function at 0x10027e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004cd3c
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
push 0x40
lea esi, [esp + 0xc4]
mov dword [esp + 0x33c], ebx
call fcn.10027c90
push 0x104
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x114]
dec edi
jmp 0x10027ef0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10027ef0
cmp dword [esp + 0xd4], 0x10
mov cx, word [0x10053434]
mov eax, dword [esp + 0xc0]
mov word [edi], cx
jae 0x10027f1a
lea eax, [esp + 0xc0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10027f20
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10027f31
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10027f53
sub eax, edx
push eax
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0xc8]
call fcn.100028b0
lea eax, [esp + 0x14]
push eax
call fcn.10029db0
mov byte [esp + 0x338], 1
mov ecx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x10027f9f
lea ecx, [esp + 0xc0]
push 0x12
lea esi, [esp + 0x1c]
call fcn.10005d00
test eax, eax
jne 0x10027fca
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x20]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10027fe3
or eax, 4
jmp 0x10027fe3
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x4c]
lea ecx, [esp + ecx + 0x14]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
push eax
call fcn.10007c00
cmp dword [esp + 0x6c], ebx
je 0x100280f1
push 0x101
lea eax, [esp + 0x220]
push ebx
push eax
call fcn.10037e20
mov edx, dword [0x10061bcc]
add esp, 0xc
push 0x100
lea ecx, [esp + 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0xf
lea eax, [esp + 0x21c]
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10028048
sub eax, ecx
push eax
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0xe4]
call fcn.100028b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
mov byte [esp + 0x358], 2
push ebx
lea edx, [esp + 0x100]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.10002da0
lea esi, [esp + 0x114]
call fcn.10028190
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x340], 3
call fcn.1002a440
push eax
call fcn.1002ab60
add esp, 0xc
cmp dword [esp + 0x10c], edi
jb 0x100280d0
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.10032d80
add esp, 4
mov byte [esp + 0x338], 1
cmp dword [esp + 0xf0], edi
jb 0x100280f1
mov edx, dword [esp + 0xdc]
push edx
call fcn.10032d80
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10005da0
test eax, eax
jne 0x1002811f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x20]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10028118
or eax, 4
push ebx
push eax
call fcn.10007c00
lea ecx, [esp + 0x74]
mov byte [esp + 0x338], bl
call fcn.100058c0
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.1003431d
add esp, 4
cmp dword [esp + 0xd4], edi
jb 0x1002815d
mov edx, dword [esp + 0xc0]
push edx
call fcn.10032d80
add esp, 4
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret