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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push 0x4402f8
call fcn.004147b0
lea ecx, [ebp - 0x48]
call fcn.00402fb0
add esp, 0x18
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00414e00
add esp, 4
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.00414c70
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40c87f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c891
mov bl, 1
jmp 0x40c899
shr bl, 4
not bl
and bl, 1
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x40c8cd
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c8c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfd0
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40c913
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfd0
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x40c959
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c94f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfd0
push edx
push ecx
call fcn.00415fcc
add esp, 8
test bl, bl
je 0x40ca6c
sub esp, 0x18
mov ecx, esp
push 0x4402f8
call fcn.004147b0
lea ecx, [ebp - 0x48]
call fcn.00402fb0
add esp, 0x18
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00414e00
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00414c70
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40c9a3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40c9e0
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfd5
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x40ca26
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfd5
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40ca6c
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfd5
push edx
push ecx
call fcn.00415fcc
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4402f8
call fcn.004147b0
lea ecx, [ebp - 0x48]
call fcn.00402fb0
add esp, 0x18
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00414e00
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00414c70
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40caae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40cac0
xor bl, bl
jmp 0x40cac6
shr bl, 4
and bl, 1
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40cafa
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40caf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfda
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x40cb40
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfda
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40cb86
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfda
push edx
push ecx
call fcn.00415fcc
add esp, 8
test bl, bl
je 0x40cee4
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
lea ecx, [ebp - 0x48]
call fcn.004051b0
add esp, 0x18
push eax
sub esp, 0x1c
mov ecx, esp
push 0x4402f8
call fcn.004147b0
lea ecx, [ebp - 0x90]
call fcn.00402fb0
add esp, 0x1c
lea edx, [ebp + 8]
lea ecx, [ebp - 0x78]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00414e00
add esp, 4
lea ecx, [ebp - 0x60]
mov edx, eax
call fcn.00414c70
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.00414c70
add esp, 4
mov ecx, eax
push 0x43c114
call fcn.004145a0
lea edx, [ebp - 0x18]
mov ecx, esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp + 0x50]
push eax
call fcn.00414d60
mov edx, dword [ebp - 4]
add esp, 4
cmp edx, 0x10
jb 0x40cc65
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cc5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40ccab
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cca1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x40ccf1
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cce7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x40cd37
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x40cd80
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
cmp edx, 0x10
jb 0x40cdc9
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cdbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x40ce0f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40ce55
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40ce9b
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x40cfc8
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cfbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
jmp 0x40cfbe
push 0
push 0x43b4fb
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00414b30
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40cf37
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40cf79
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40ce9b
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cfdf
jmp 0x40ce91
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041bb2d
call fcn.0041bb2d
call fcn.0041bb2d
call fcn.0041bb2d
int3