Function at 0x4089c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b702
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x597950]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov esi, 0xf
lea eax, [ebp - 0x118]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408a22
sub eax, edx
push eax
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x16c]
call fcn.00411b00
lea eax, [ebp - 0x16c]
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], ebx
call fcn.00412930
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x158], edi
jb 0x408a72
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00418a0c
add esp, 4
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x238]
push ecx
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
call fcn.0040f110
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1d4], ebx
jne 0x408b53
lea edx, [ebp - 0x188]
push edx
push ecx
call fcn.00412970
add esp, 4
push eax
call fcn.00412c30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040e4f0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0xc]
add eax, esi
xor edi, edi
test cl, 6
jne 0x408af3
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x408af3
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x408b12
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x408b0b
or eax, 4
push ebx
push eax
call fcn.00401ab0
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call fcn.0040f270
lea edx, [ebp - 0x1d0]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0052bdb2
add esp, 4
cmp dword [ebp - 0x174], 0x10
jb 0x408d64
mov eax, dword [ebp - 0x188]
push eax
jmp 0x408d5c
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.0040fbd0
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x2d0]
push eax
mov byte [ebp - 4], 4
call fcn.0040e2b0
lea esi, [ebp - 0x150]
lea eax, [ebp - 0x2e0]
call fcn.0040fc70
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.00411200
test eax, eax
jne 0x408bc3
mov ecx, dword [ebp - 0x238]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x22c]
lea ecx, [ebp + ecx - 0x238]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x408bbc
or eax, 4
push ebx
push eax
call fcn.00401ab0
push 0x18
mov esi, 0xf
push str._add_key_AppLaunchMode_
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
call fcn.00411b00
mov eax, dword [ebp - 0x134]
cmp dword [ebp - 0x120], edi
jae 0x408c00
lea eax, [ebp - 0x134]
mov edx, dword [ebp - 0x124]
push edx
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00410ca0
cmp eax, 0xffffffff
je 0x408cc4
cmp dword [ebp - 0x120], edi
jb 0x408c34
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00418a0c
add esp, 4
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
cmp dword [ebp - 0x13c], edi
jb 0x408c5d
mov edx, dword [ebp - 0x150]
push edx
call fcn.00418a0c
add esp, 4
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
mov byte [ebp - 4], 3
call fcn.00408ef0
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call fcn.0040f270
lea eax, [ebp - 0x1d0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0052bdb2
add esp, 4
cmp dword [ebp - 0x174], edi
jb 0x408cbd
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.00418a0c
add esp, 4
mov al, 1
jmp 0x408d66
cmp dword [ebp - 0x120], edi
jb 0x408cdb
mov edx, dword [ebp - 0x134]
push edx
call fcn.00418a0c
add esp, 4
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
cmp dword [ebp - 0x13c], edi
jb 0x408d04
mov eax, dword [ebp - 0x150]
push eax
call fcn.00418a0c
add esp, 4
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
mov byte [ebp - 4], 3
call fcn.00408ef0
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call fcn.0040f270
lea ecx, [ebp - 0x1d0]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0052bdb2
add esp, 4
cmp dword [ebp - 0x174], edi
jb 0x408d64
mov edx, dword [ebp - 0x188]
push edx
call fcn.00418a0c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00510a46
mov esp, ebp
pop ebp
ret