Function at 0x10027cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004cf3c
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.10027af0
push 0x104
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x114]
dec edi
jmp 0x10027d50
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10027d50
cmp dword [esp + 0xd4], 0x10
mov cx, word [0x10053424]
mov eax, dword [esp + 0xc0]
mov word [edi], cx
jae 0x10027d7a
lea eax, [esp + 0xc0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10027d80
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10027d91
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 0x10027db3
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.10029bb0
mov byte [esp + 0x338], 1
mov ecx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x10027dff
lea ecx, [esp + 0xc0]
push 0x12
lea esi, [esp + 0x1c]
call fcn.10005c40
test eax, eax
jne 0x10027e2a
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 0x10027e43
or eax, 4
jmp 0x10027e43
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.100076a0
cmp dword [esp + 0x6c], ebx
je 0x10027f51
push 0x101
lea eax, [esp + 0x220]
push ebx
push eax
call fcn.10037ff0
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 0x10027ea8
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.10027ff0
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x340], 3
call fcn.1002a110
push eax
call fcn.1002a750
add esp, 0xc
cmp dword [esp + 0x10c], edi
jb 0x10027f30
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.10032f50
add esp, 4
mov byte [esp + 0x338], 1
cmp dword [esp + 0xf0], edi
jb 0x10027f51
mov edx, dword [esp + 0xdc]
push edx
call fcn.10032f50
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10005ce0
test eax, eax
jne 0x10027f7f
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 0x10027f78
or eax, 4
push ebx
push eax
call fcn.100076a0
lea ecx, [esp + 0x74]
mov byte [esp + 0x338], bl
call fcn.10005830
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.100344ed
add esp, 4
cmp dword [esp + 0xd4], edi
jb 0x10027fbd
mov edx, dword [esp + 0xc0]
push edx
call fcn.10032f50
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.10034eea
mov esp, ebp
pop ebp
ret