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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42709d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4334c0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
call fcn.00408ab0
add esp, 8
mov esi, eax
push 1
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x428930
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040ced0
push 0
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040ab80
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x407784
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40777a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4077bc
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4077b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov ebx, dword [ebp - 0x60]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x64]
mov ecx, ebx
sub ecx, edi
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
dec esi
add esi, edx
js 0x4078f2
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x428930
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040ced0
push esi
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004075a0
mov edx, dword [ebp - 0x2c]
add esp, 0x14
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x40785f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407855
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp eax, 0xffffffff
je 0x407879
shr eax, 4
and al, 1
jne 0x4078b8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4078ad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4078a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
sub esi, 1
jns 0x4077e4
jmp 0x4078ec
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4078ec
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4078e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x60]
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, edi
inc esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x407ada
push 1
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push 0x428930
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040ced0
push esi
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004075a0
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x40798b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov edx, 0x4282c0
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp - 0x58]
test eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmovne edx, eax
mov byte [ebp - 0x28], 0
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079c0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ced0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004051c0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4079ef
mov eax, dword [eax]
push eax
call fcn.004173c2
mov edx, dword [ebp - 0x2c]
add esp, 4
cmp edx, 8
jb 0x407a32
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x407a7e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407a74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x407ab6
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407aac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b8f
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov ebx, dword [ebp - 0x60]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x64]
mov ecx, ebx
sub ecx, edi
inc esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jl 0x407910
test edi, edi
je 0x407b73
mov esi, edi
cmp esi, ebx
je 0x407b33
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x407b1b
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x407b11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b94
mov eax, edx
push ecx
push eax
call fcn.0040e6f9
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, ebx
jne 0x407ae8
mov ecx, dword [ebp - 0x5c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x407b69
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b94
push ecx
push edi
call fcn.0040e6f9
add esp, 8
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.0040e707
mov esp, ebp
pop ebp
ret
call fcn.00411b5f
call fcn.00411b5f
int3