Function at 0x10027d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004ccfc
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.10027b70
push 0x104
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x114]
dec edi
jmp 0x10027dd0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10027dd0
cmp dword [esp + 0xd4], 0x10
mov cx, word [0x1005343c]
mov eax, dword [esp + 0xc0]
mov word [edi], cx
jae 0x10027dfa
lea eax, [esp + 0xc0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10027e00
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10027e11
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 0x10027e33
sub eax, edx
push eax
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0xc8]
call fcn.100028f0
lea eax, [esp + 0x14]
push eax
call fcn.10029c30
mov byte [esp + 0x338], 1
mov ecx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x10027e7f
lea ecx, [esp + 0xc0]
push 0x12
lea esi, [esp + 0x1c]
call fcn.10005d30
test eax, eax
jne 0x10027eaa
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 0x10027ec3
or eax, 4
jmp 0x10027ec3
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.10007a70
cmp dword [esp + 0x6c], ebx
je 0x10027fd1
push 0x101
lea eax, [esp + 0x220]
push ebx
push eax
call fcn.10037db0
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 0x10027f28
sub eax, ecx
push eax
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0xe4]
call fcn.100028f0
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.10002de0
lea esi, [esp + 0x114]
call fcn.10028070
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x340], 3
call fcn.10029ea0
push eax
call fcn.1002a680
add esp, 0xc
cmp dword [esp + 0x10c], edi
jb 0x10027fb0
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.10032d10
add esp, 4
mov byte [esp + 0x338], 1
cmp dword [esp + 0xf0], edi
jb 0x10027fd1
mov edx, dword [esp + 0xdc]
push edx
call fcn.10032d10
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10005dd0
test eax, eax
jne 0x10027fff
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 0x10027ff8
or eax, 4
push ebx
push eax
call fcn.10007a70
lea ecx, [esp + 0x74]
mov byte [esp + 0x338], bl
call fcn.100058f0
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.100342ad
add esp, 4
cmp dword [esp + 0xd4], edi
jb 0x1002803d
mov edx, dword [esp + 0xc0]
push edx
call fcn.10032d10
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.10034caa
mov esp, ebp
pop ebp
ret