Function at 0x10027d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004cd6c
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.10027b60
push 0x104
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x114]
dec edi
jmp 0x10027dc0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10027dc0
cmp dword [esp + 0xd4], 0x10
mov cx, word [0x10053444]
mov eax, dword [esp + 0xc0]
mov word [edi], cx
jae 0x10027dea
lea eax, [esp + 0xc0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10027df0
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10027e01
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 0x10027e23
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.10029c50
mov byte [esp + 0x338], 1
mov ecx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x10027e6f
lea ecx, [esp + 0xc0]
push 0x12
lea esi, [esp + 0x1c]
call fcn.10005c90
test eax, eax
jne 0x10027e9a
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 0x10027eb3
or eax, 4
jmp 0x10027eb3
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.100079b0
cmp dword [esp + 0x6c], ebx
je 0x10027fc1
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 0x10027f18
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.10028060
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x340], 3
call fcn.10029ee0
push eax
call fcn.1002a720
add esp, 0xc
cmp dword [esp + 0x10c], edi
jb 0x10027fa0
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.10032d80
add esp, 4
mov byte [esp + 0x338], 1
cmp dword [esp + 0xf0], edi
jb 0x10027fc1
mov edx, dword [esp + 0xdc]
push edx
call fcn.10032d80
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10005d30
test eax, eax
jne 0x10027fef
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 0x10027fe8
or eax, 4
push ebx
push eax
call fcn.100079b0
lea ecx, [esp + 0x74]
mov byte [esp + 0x338], bl
call fcn.10005880
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 0x1002802d
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