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

Disassembly:
push 0x7c
mov eax, 0x459735
call fcn.004572ce
mov edi, edx
mov esi, ecx
cmp byte [0x464140], 1
je 0x417134
mov byte [0x464140], 1
call fcn.00411764
xor eax, eax
mov ecx, 0x464134
push edi
push esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], eax
call fcn.0041ff58
test al, al
je 0x4171ec
push 0x31
push 0
push 0xa
push 6
push 0x464120
call fcn.00411073
add esp, 0x14
call fcn.00411c65
test al, al
je 0x4171ec
call fcn.0041399c
test al, al
je 0x4171ec
cmp byte [0x464154], 0
je 0x41718e
push dword [edi]
call fcn.004120ab
jmp 0x4171ec
mov edi, 0x40a5f4
lea ecx, [ebp - 0x2c]
push edi
call fcn.00413f00
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.004118f7
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00410a1a
test esi, esi
jne 0x4171f7
push edi
lea ecx, [ebp - 0x2c]
call fcn.00413f00
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
call fcn.004118f7
push eax
push 0x138c
push 0x464120
call fcn.0041105c
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00410a1a
mov eax, dword [0x464120]
call fcn.0045721b
ret
mov ecx, dword [0x46415c]
mov eax, ecx
mov edi, dword [0x464158]
sub eax, edi
push 0x18
pop esi
cdq
idiv esi
mov dword [ebp - 0x34], esi
test eax, eax
jne 0x417261
lea ecx, [ebp - 0x2c]
call fcn.00417051
mov esi, eax
mov edi, 0x464158
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00413d9c
push esi
mov ecx, edi
call fcn.0041a594
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00410a1a
mov edi, dword [ebp - 0x34]
mov al, byte [0x464157]
test al, al
je 0x4172b0
cmp dword [0x46418c], 0
je 0x4172b0
push 0x138e
jmp 0x4173a4
xor esi, esi
sub ecx, edi
mov edi, dword [ebp - 0x34]
mov eax, ecx
cdq
idiv edi
cmp esi, eax
jae 0x417245
push esi
call fcn.00416737
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4172a1
push esi
call fcn.00416737
push eax
push 0x7e9
push 0x464120
call fcn.0041105c
add esp, 0xc
jmp 0x4171ec
mov ecx, dword [0x46415c]
inc esi
mov edi, dword [0x464158]
jmp 0x417263
mov cl, byte [0x464288]
test cl, cl
jne 0x4172c2
cmp byte [0x46424d], cl
je 0x4172d5
cmp byte [0x464156], 0
jne 0x4172d5
push 0x139a
jmp 0x4173a4
cmp dword [0x4641c8], 0
je 0x4172ec
test al, al
jne 0x4172ec
push 0x1398
jmp 0x4173a4
call fcn.00416775
test eax, eax
je 0x417389
call fcn.00416775
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x41734d
call fcn.00416775
push eax
push 5
push 0x464120
call fcn.00411073
add esp, 0xc
push 0
call fcn.00416775
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41734a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00416775
push ecx
push eax
push 0xbba
jmp 0x417365
mov eax, dword [ebp - 0x34]
test al, 0x10
jne 0x417377
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00416775
push ecx
push eax
push 0xbbb
push 0x464120
call fcn.0041105c
add esp, 0x10
jmp 0x4171ec
call fcn.00416775
mov ecx, eax
call fcn.0041774b
mov cl, byte [0x464288]
test cl, cl
je 0x4173b5
cmp byte [0x46424d], 0
jne 0x41739f
cmp byte [0x46424c], 0
je 0x4173b5
push 0x139d
push 0x464120
call fcn.0041105c
pop ecx
pop ecx
jmp 0x4171ec
cmp dword [0x4641a4], 0
je 0x4173cb
call fcn.00412360
test al, al
je 0x4171ec
call fcn.00416775
test eax, eax
je 0x41750e
lea ecx, [ebp - 0x70]
call fcn.00416a9f
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.004178e4
test al, al
je 0x41746d
mov esi, dword [ebp - 0x44]
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x41741c
mov ecx, dword [eax + 0x28]
mov al, byte [ecx + 0x44]
test al, al
jne 0x41740f
call fcn.0042e5ea
test al, al
je 0x41746d
lea ecx, [ebp - 0x34]
call fcn.00413fb8
mov eax, dword [ebp - 0x34]
jmp 0x4173f8
lea ecx, [ebp - 0x70]
call fcn.00418582
test al, al
jne 0x41746d
mov esi, dword [0x464120]
lea ecx, [ebp - 0x3c]
call fcn.004105dd
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
lea eax, [ebp - 0x44]
push eax
mov ecx, eax
call fcn.0041ea08
mov ecx, dword [ebp - 0x44]
push 0x30
pop edx
call fcn.00410c0a
lea ecx, [ebp - 0x64]
call fcn.00416cef
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x417466
call fcn.004113df
mov eax, esi
jmp 0x4171f1
lea eax, [ebp - 0x2c]
push eax
call fcn.004167f4
lea ecx, [ebp - 0x2c]
mov esi, dword [eax + 0x10]
call fcn.00410a1a
test esi, esi
je 0x4174b4
lea eax, [ebp - 0x2c]
push eax
call fcn.004167f4
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00419e86
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 4
call fcn.00410a1a
cmp byte [ebp - 0x2d], 0
je 0x417428
cmp dword [0x4641c8], 0
je 0x4174d2
push 0x4641b8
lea ecx, [ebp - 0x70]
call fcn.00419324
test al, al
je 0x417428
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.004105dd
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
lea eax, [ebp - 0x44]
push eax
mov ecx, eax
call fcn.0041ea08
mov ecx, dword [ebp - 0x44]
push 0x30
pop edx
call fcn.00410c0a
lea ecx, [ebp - 0x64]
call fcn.00416cef
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x41750e
call fcn.004113df
cmp byte [0x464155], 0
je 0x4171ec
lea ecx, [ebp - 0x64]
call fcn.00416f34
mov byte [ebp - 4], 6
call fcn.00416775
test eax, eax
je 0x417583
call fcn.00416775
push eax
lea ecx, [ebp - 0x64]
call fcn.0042788d
lea ecx, [ebp - 0x54]
call fcn.00416cef
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
lea eax, [ebp - 0x5c]
push eax
mov ecx, eax
call fcn.0041e9b6
mov ecx, dword [ebp - 0x5c]
push 0x50
pop edx
call fcn.00410c0a
mov eax, dword [ebp - 0x64]
push dword [eax + 4]
lea eax, [ebp - 0x64]
push eax
mov ecx, eax
call fcn.0041ea08
mov ecx, dword [ebp - 0x64]
push 0x30
pop edx
call fcn.00410c0a
jmp 0x4171ec
xor ecx, ecx
mov eax, dword [0x46415c]
sub eax, dword [0x464158]
cdq
idiv edi
cmp ecx, eax
jae 0x41753e
push ecx
call fcn.00416737
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4175de
push esi
test al, 0x10
je 0x4175ba
lea ecx, [ebp - 0x64]
call fcn.0042788d
jmp 0x4175de
lea ecx, [ebp - 0x2c]
call fcn.00413f00
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x64]
call fcn.00427cfa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00410a1a
mov ecx, dword [ebp - 0x74]
inc ecx
mov dword [ebp - 0x74], ecx
jmp 0x417585