Function at 0x417b80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4544e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46a630]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x46a630]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, 0xf
xor edi, edi
mov eax, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x417bd0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00406ef0
mov dword [esp + 0x58], edi
push edi
push 0x45ec20
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
call fcn.00406ef0
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
mov edx, dword [esp + 0x14]
jb 0x417daa
cmp edx, edi
mov esi, edx
je 0x417c46
cmp ecx, 0x10
mov eax, edx
jae 0x417c2d
lea eax, [esp + 0x14]
cmp eax, esi
ja 0x417c46
cmp ecx, 0x10
mov eax, edx
jae 0x417c3c
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, edi
cmp esi, eax
jbe 0x417c53
call fcn.004366d7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ebx, esi
cmp ecx, 0x10
mov eax, edx
jae 0x417c60
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
lea esi, [eax + edi]
test esi, esi
je 0x417c8b
cmp ecx, 0x10
mov eax, edx
jae 0x417c76
lea eax, [esp + 0x14]
cmp eax, esi
ja 0x417c8b
cmp ecx, 0x10
mov eax, edx
jae 0x417c85
lea eax, [esp + 0x14]
add eax, edi
cmp esi, eax
jbe 0x417c98
call fcn.004366d7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp ebx, esi
je 0x417df2
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
mov esi, 0x10
je 0x417ccf
cmp ecx, esi
mov eax, edx
jae 0x417cb8
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, edi
cmp ebx, eax
jb 0x417ccf
call fcn.004366d7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx], 0x5c
je 0x417d03
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
je 0x417cfe
cmp ecx, esi
mov eax, edx
jae 0x417ce7
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, edi
cmp ebx, eax
jb 0x417cfe
call fcn.004366d7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx], 0x2f
jne 0x417d40
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x417d11
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417d38
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x417d2b
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x417db3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
je 0x417d62
cmp ecx, esi
mov eax, edx
jae 0x417d53
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x24]
add eax, ecx
cmp ebx, eax
jb 0x417d62
call fcn.004366d7
movzx edx, byte [ebx]
push edx
lea edi, [esp + 0x30]
call fcn.0040c500
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
je 0x417da2
cmp ecx, 0x10
mov eax, edx
jae 0x417d8b
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x24]
add eax, esi
cmp ebx, eax
jb 0x417da2
call fcn.004366d7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add ebx, 1
jmp 0x417c55
lea esi, [esp + 0x14]
jmp 0x417c22
cmp dword [esp + 0x44], esi
jb 0x417dc6
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041902f
add esp, 4
cmp dword [esp + 0x28], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x417dee
mov edx, dword [esp + 0x14]
push edx
call fcn.0041902f
add esp, 4
xor al, al
jmp 0x417e33
cmp dword [esp + 0x44], 0x10
jb 0x417e0e
mov eax, dword [esp + 0x30]
push eax
call fcn.0041902f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
add esp, 4
cmp ecx, 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x417e31
push edx
call fcn.0041902f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004362fd
mov esp, ebp
pop ebp
ret