Function at 0x415fa8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454142
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x14], ecx
push str.GINI::SetFile
lea ecx, [ebp - 0x70]
call fcn.004117cd
and dword [ebp - 4], 0
push 1
mov ecx, dword [ebp + 8]
call fcn.00406a95
movsx eax, byte [eax]
cmp eax, 0x3a
jne 0x416030
push 2
mov ecx, dword [ebp + 8]
call fcn.00406a95
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x416008
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0040676c
jmp 0x41602b
push str.Invalid_path_r_n
call fcn.00404807
pop ecx
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00411939
mov al, byte [ebp - 0xd]
jmp 0x4161ff
jmp 0x416167
push 0
mov ecx, dword [ebp + 8]
call fcn.00406a95
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x4160e2
push 1
mov ecx, dword [ebp + 8]
call fcn.00406a95
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x416065
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0040676c
jmp 0x4160dd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 9
call fcn.004074bc
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 9
call fcn.004084b1
dec eax
dec eax
push eax
push 2
mov ecx, dword [ebp - 0x14]
add ecx, 9
call fcn.00408690
push dword [ebp + 8]
lea eax, [ebp - 0x49]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 9
call fcn.00406b8d
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
call fcn.0040676c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x49]
call fcn.004066e8
jmp 0x416167
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, 9
call fcn.004074bc
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x52]
push eax
push 0x458040
lea eax, [ebp - 0x5b]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 9
call fcn.00406c9e
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
call fcn.00406b8d
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
call fcn.0040676c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x52]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5b]
call fcn.004066e8
push dword [ebp - 0x14]
call fcn.0040f635
pop ecx
test eax, eax
jne 0x4161ec
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x416191
mov byte [ebp - 0xe], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00411939
mov al, byte [ebp - 0xe]
jmp 0x4161ff
lea ecx, [ebp - 0x40]
call fcn.0040d36e
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
call fcn.0040e8f6
test eax, eax
jne 0x4161e0
push str._GINI__File_does_not_exist_and_creation_failed_r_n
call fcn.00404807
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.004074eb
mov byte [ebp - 0xf], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040d4ce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00411939
mov al, byte [ebp - 0xf]
jmp 0x4161ff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040d4ce
mov byte [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00411939
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8