Function at 0x10027df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004cdac
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.10027c20
push 0x104
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x114]
dec edi
jmp 0x10027e80
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10027e80
cmp dword [esp + 0xd4], 0x10
mov cx, word [0x1005344c]
mov eax, dword [esp + 0xc0]
mov word [edi], cx
jae 0x10027eaa
lea eax, [esp + 0xc0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10027eb0
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10027ec1
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 0x10027ee3
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.10029ce0
mov byte [esp + 0x338], 1
mov ecx, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x10027f2f
lea ecx, [esp + 0xc0]
push 0x12
lea esi, [esp + 0x1c]
call fcn.10005cb0
test eax, eax
jne 0x10027f5a
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 0x10027f73
or eax, 4
jmp 0x10027f73
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.10007a90
cmp dword [esp + 0x6c], ebx
je 0x10028081
push 0x101
lea eax, [esp + 0x220]
push ebx
push eax
call fcn.10037e50
mov edx, dword [0x10061bcc]
add esp, 0xc
push pe_nt_image_headers32
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 0x10027fd8
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.10028120
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x340], 3
call fcn.1002a240
push eax
call fcn.1002a8c0
add esp, 0xc
cmp dword [esp + 0x10c], edi
jb 0x10028060
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.10032db0
add esp, 4
mov byte [esp + 0x338], 1
cmp dword [esp + 0xf0], edi
jb 0x10028081
mov edx, dword [esp + 0xdc]
push edx
call fcn.10032db0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.10005d50
test eax, eax
jne 0x100280af
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 0x100280a8
or eax, 4
push ebx
push eax
call fcn.10007a90
lea ecx, [esp + 0x74]
mov byte [esp + 0x338], bl
call fcn.10005870
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.1003434d
add esp, 4
cmp dword [esp + 0xd4], edi
jb 0x100280ed
mov edx, dword [esp + 0xc0]
push edx
call fcn.10032db0
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.10034d4a
mov esp, ebp
pop ebp
ret