Function at 0x411840
Capabilities:
Get common file path
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59080b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5f9e74]
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
mov ebx, edx
mov esi, ecx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x258], 0
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
mov ecx, esi
call fcn.00415b80
mov esi, eax
add esp, 4
test esi, esi
jne 0x4118b5
mov dword [ebp - 0x258], 0xffffffff
jmp 0x411a93
cmp dword [esi], 1
je 0x4118c6
mov dword [0x605368], 0x80000
jmp 0x4118dc
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x254]
push eax
push 0xffffffffffffffff
call fcn.00415180
mov dword [0x605368], eax
mov eax, dword [ebp - 0x254]
xor edi, edi
mov dword [ebp - 0x25c], eax
test eax, eax
jle 0x411a7b
cmp dword [esi], 1
jne 0x411a67
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x254]
push eax
push edi
call fcn.00415180
mov dword [0x605368], eax
test eax, eax
jne 0x411a71
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x128], al
cmp byte [ebx], al
je 0x411940
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411937
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x128]
call fcn.00402140
push 0x5c
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.004032c0
cmp byte [ebp - 0x250], 0
jne 0x41196e
xor ecx, ecx
jmp 0x411980
lea ecx, [ebp - 0x250]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411977
sub ecx, edx
push ecx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x128]
call fcn.004035e0
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.00572444
add esp, 8
test eax, eax
jne 0x4119f7
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
cmovae eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
test cl, 1
je 0x4119f7
and ecx, 0xfffffffe
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 0x10
push ecx
cmovae eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x411a1c
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004023e0
cmp dword [esi], 1
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
jne 0x411a67
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x250]
sub esp, 8
push eax
push edi
call fcn.004158c0
mov dword [0x605368], eax
test eax, eax
jne 0x411a71
inc edi
cmp edi, dword [ebp - 0x25c]
jl 0x4118f2
jmp 0x411a7b
mov dword [0x605368], 0x80000
mov dword [ebp - 0x258], 0xffffffff
cmp dword [esi], 1
mov ecx, esi
sete al
test al, al
je 0x411a8e
call fcn.00415c60
jmp 0x411a93
call fcn.004164c0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x258]
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.00568e6a
mov esp, ebp
pop ebp
ret