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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45340c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x46f020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c8], edx
mov esi, ecx
mov dword [ebp - 0x1c4], esi
lea eax, [ebp - 0x1b5]
mov dword [ebp - 0x2c], 0
push 8
mov dword [ebp - 0x1bc], eax
call fcn.00402460
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x30], eax
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00402230
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x10
mov edi, dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
test edi, edi
je 0x403605
push edi
push 0x2f
push esi
call fcn.00410e00
add esp, 0xc
test eax, eax
je 0x403605
sub eax, esi
cmp eax, 0xffffffff
jne 0x403636
cmp ebx, 0x10
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
test edi, edi
je 0x4038f7
push edi
push 0x5c
push esi
call fcn.00410e00
add esp, 0xc
test eax, eax
je 0x4038f7
sub eax, esi
cmp eax, 0xffffffff
je 0x4038f7
lea ecx, [ebp - 0x30]
call fcn.00401f90
lea eax, [ebp - 0x1b5]
mov dword [ebp - 0x4c], 0
push 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1bc], eax
call fcn.00402460
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x1c0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x1c4]
mov ecx, ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4036b0
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00402230
push dword [ebp - 0x1c8]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov edx, dword [ebp - 0x38]
cmovae ecx, dword [ebp - 0x48]
push 2
push 0x46ba40
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x4c]
push eax
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.00401eb0
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x40370b
mov ecx, dword [ecx]
push ecx
call fcn.004251d0
add esp, 4
lea ecx, [ebp - 0x84]
mov esi, eax
call fcn.00401f90
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401f90
lea eax, [ebp - 0x1b5]
mov dword [ebp - 0x2c], 0
push 8
mov dword [ebp - 0x1bc], eax
call fcn.00402460
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x30], eax
mov ecx, esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403780
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00402230
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4037c2
test al, 0x10
je 0x4037c2
lea ecx, [ebp - 0x30]
call fcn.00401f90
jmp 0x403905
lea ecx, [ebp - 0x30]
call fcn.00401f90
lea eax, [ebp - 0x1b5]
mov dword [ebp - 0x30], 0
push 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1bc], eax
call fcn.00402460
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x30], eax
mov ecx, esi
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403830
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00402230
mov dword [ebp - 4], 5
xor esi, esi
nop dword [eax]
mov ebx, dword [ebp - 0x1c]
lea edi, [ebp - 0x2c]
inc esi
cmp dword [ebp - 0x18], 0x10
cmovae edi, dword [ebp - 0x2c]
cmp esi, ebx
jae 0x4038b7
push 0x100
lea eax, [ebp - 0x1b4]
push 0
push eax
call fcn.00410bf0
add esp, 0xc
mov ecx, 0x46ba4c
nop
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x1b4], 1
cmp ecx, 0x46ba4e
jne 0x403880
lea ecx, [ebx + edi]
add esi, edi
cmp esi, ecx
jae 0x4038b7
nop dword [eax]
movzx eax, byte [esi]
mov al, byte [ebp + eax - 0x1b4]
test al, al
jne 0x403991
inc esi
cmp esi, ecx
jb 0x4038a0
or esi, 0xffffffff
push esi
push 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401eb0
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x4038d7
mov ecx, dword [ecx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x84]
call fcn.00401f90
cmp esi, 0xffffffff
jne 0x403850
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x30]
call fcn.00401f90
mov ebx, dword [ebp - 0x1c4]
lea eax, [ebp - 0x1b5]
mov dword [ebp - 0x64], 0
push 8
mov dword [ebp - 0x1bc], eax
call fcn.00402460
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x1c0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x68], eax
mov ecx, ebx
mov dword [ebp - 4], 6
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403955
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x68]
call fcn.00402230
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0xb4]
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push ecx
push eax
call fcn.00426670
add esp, 8
lea ecx, [ebp - 0x68]
test eax, eax
je 0x403998
call fcn.00401f90
jmp 0x4039b1
sub esi, edi
jmp 0x4038ba
call fcn.00401f90
mov eax, dword [ebp - 0xae]
shr eax, 0xe
test al, 1
je 0x4039b1
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x46ba44
push ebx
call fcn.00425170
mov esi, eax
add esp, 8
test esi, esi
je 0x4039e3
push esi
push 1
push dword [ebp + 8]
push dword [ebp - 0x1c8]
call fcn.00426e00
push esi
call fcn.00416750
add esp, 0x14
mov al, 1
jmp 0x4039e5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret