Function at 0x402860
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bb36
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x158], 0xa
lea ecx, [ebp - 0x10]
call fcn.00401880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00401880
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14c]
call fcn.00403150
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x2a8]
call fcn.00402360
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2b0]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x27c]
call fcn.004018a0
lea ecx, [ebp - 0x18]
call fcn.00401db0
mov dword [ebp - 0x150], eax
push 0
lea ecx, [ebp - 0x18]
call fcn.00403270
movsx eax, al
push eax
call fcn.00435fa8
add esp, 4
mov byte [ebp - 0x11], al
cmp dword [ebp - 0x150], 4
jl 0x402989
movsx ecx, byte [ebp - 0x11]
cmp ecx, 0x41
jl 0x402989
movsx edx, byte [ebp - 0x11]
cmp edx, 0x5a
jg 0x402989
push 1
lea ecx, [ebp - 0x18]
call fcn.00403270
movsx eax, al
movsx ecx, byte [0x45445b]
cmp eax, ecx
jne 0x402989
push 2
lea ecx, [ebp - 0x18]
call fcn.00403270
movsx edx, al
movsx eax, byte [0x454459]
cmp edx, eax
je 0x4029d6
push 0xffffffffffffffff
push 0x30
push 0x6809
call fcn.0042e2fc
mov dword [ebp - 0x280], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x280]
jmp 0x402e9f
push 3
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004031d0
mov dword [ebp - 0x2b4], eax
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
call fcn.004018a0
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x402ad9
mov eax, dword [ebp - 0x16c]
mov edx, dword [ebp - 0x154]
mul edx
mov ecx, dword [ebp - 0x15c]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.00436090
push 0
push 0xf4240
push edx
push eax
call fcn.00435fe0
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xa
jae 0x402ad7
push 0xffffffffffffffff
push 0x30
push 0x6803
call fcn.0042e2fc
mov dword [ebp - 0x288], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x288]
jmp 0x402e9f
jmp 0x402b26
push 0xffffffffffffffff
push 0x30
push 0x6809
call fcn.0042e2fc
mov dword [ebp - 0x28c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x28c]
jmp 0x402e9f
lea edx, [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
call fcn.0042dc24
test eax, eax
je 0x402cdb
mov dword [ebp - 0x160], 1
push 0x45445f
push 1
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
call fcn.0041f070
add esp, 0xc
cmp eax, 0x14
jle 0x402b74
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x1c], 0
jmp 0x402b86
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 6
jge 0x402bcb
mov ecx, dword [ebp - 0x1c]
add ecx, 0x110
push ecx
lea ecx, [ebp - 0x10]
call fcn.004018e0
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
push 0
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
call fcn.0041f070
add esp, 0xc
cmp eax, 6
jl 0x402bc9
mov dword [ebp - 0x160], 0
jmp 0x402b7d
cmp dword [ebp - 0x160], 0
jne 0x402c21
push 0xffffffffffffffff
push 0x30
push 0x6807
call fcn.0042e2fc
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x290]
jmp 0x402e9f
lea edx, [ebp - 0x274]
push edx
push 0
push 0x44f9ec
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x402c8f
push 0xffffffffffffffff
push 0x30
push 0x6809
call fcn.0042e2fc
mov dword [ebp - 0x294], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x294]
jmp 0x402e9f
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x298], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x298]
jmp 0x402e9f
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x164]
call fcn.00403530
mov dword [ebp - 0x160], 1
cmp dword [ebp - 0x160], 0
je 0x402e4c
lea ecx, [ebp - 0x164]
call fcn.00401920
push eax
lea edx, [ebp - 0x29c]
push edx
call fcn.00421ee0
add esp, 8
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.004018a0
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00403250
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x402d85
lea ecx, [ebp - 0x10]
call fcn.004032b0
movzx edx, al
test edx, edx
jne 0x402d85
mov dword [ebp - 0x2c4], 1
jmp 0x402d8f
mov dword [ebp - 0x2c4], 0
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x402df5
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
call fcn.0042dc24
test eax, eax
je 0x402df5
push 0
lea ecx, [ebp - 0x164]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402deb
lea ecx, [ebp - 0x164]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402e4c
mov dword [ebp - 0x160], 0
lea ecx, [ebp - 0x164]
call fcn.00401920
push eax
lea edx, [ebp - 0x2a0]
push edx
call fcn.00421ee0
add esp, 8
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2cc]
push ecx
lea ecx, [ebp - 0x164]
call fcn.00403530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a0]
call fcn.004018a0
jmp 0x402cf4
cmp dword [ebp - 0x160], 0
jne 0x402e63
push 0xffffffffffffffff
push 0x30
push 0x6809
call fcn.0042e2fc
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x2a4], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret