Function at 0x41c530
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491730
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b20bc]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], edi
cmp dword [esi + 0x10], 0
jne 0x41c5a7
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41c5a0
test byte [eax + 0x1c], 4
je 0x41c5a0
cmp byte [eax + 0x19], 5
jb 0x41c5a0
cmp dword [esi + 0x14], 0x10
jb 0x41c58a
mov esi, dword [esi]
push esi
push 0x4980e0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041be00
add esp, 0x14
xor al, al
jmp 0x41c838
push esi
lea ecx, [ebp - 0x40]
call fcn.004045e0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
jb 0x41c5c3
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
cmp eax, 1
jne 0x41c748
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
push 0x104
lfence
call fcn.0041cd40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x41c606
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push eax
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x41c684
dec eax
cmp eax, ecx
ja 0x41c633
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x41c62a
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ecx + eax], 0
jmp 0x41c643
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
lfence
call fcn.0041cd40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x41c64f
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x41c684
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41c6c1
test byte [eax + 0x1c], 4
je 0x41c6c1
cmp byte [eax + 0x19], 5
jb 0x41c6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4980e0
push 0xb
jmp 0x41c6ae
test eax, eax
jne 0x41c6d0
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41c6c1
test byte [eax + 0x1c], 4
je 0x41c6c1
cmp byte [eax + 0x19], 5
jb 0x41c6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4980e0
push 0xc
mov eax, dword [0x4b2000]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041d180
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00407550
xor bl, bl
jmp 0x41c82e
cmp eax, ecx
ja 0x41c6e9
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x41c6e0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ecx + eax], 0
jmp 0x41c6f9
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
lfence
call fcn.0041cd40
push 0x4980f0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041c320
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c2b0
add esp, 0x18
lea ecx, [ebp - 0x40]
push eax
call fcn.0041c4e0
lea ecx, [ebp - 0x58]
call fcn.00407550
lea ecx, [ebp - 0x70]
call fcn.00407550
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407550
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
call fcn.0041ccb0
add esp, 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x41c760
mov edx, dword [ebp - 0x40]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c777
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407a30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
jb 0x41c79a
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c7b2
shr ebx, 4
not bl
and bl, 1
jmp 0x41c7ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407550
test bl, bl
jne 0x41c811
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41c80d
test byte [eax + 0x1c], 4
je 0x41c80d
cmp byte [eax + 0x19], 5
jb 0x41c80d
cmp dword [esi + 0x14], 0x10
jb 0x41c7ea
mov esi, dword [esi]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
jb 0x41c7f6
mov ecx, dword [ebp - 0x40]
push esi
push ecx
push 0x4980e0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041d1b0
add esp, 0x18
xor bl, bl
jmp 0x41c82e
lea eax, [ebp - 0x40]
cmp edi, eax
je 0x41c82c
cmp dword [ebp - 0x2c], 0x10
jb 0x41c821
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00407a30
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00407550
mov al, bl
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.00442022
mov esp, ebp
pop ebp
ret