Function at 0x407570
Capabilities:
Check if file exists
Create directory
Get disk size
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42e0fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x43ab24]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x9c0]
lea esi, [ebp + 0x9c0]
mov dword [esp + 0x178], 0
mov eax, dword [ecx - 8]
mov ecx, esi
inc eax
push eax
call fcn.0041e912
push eax
mov ecx, ebp
call fcn.004069a0
cmp eax, 1
jne 0x407623
push eax
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0041b612
lea edx, [esp + 0x2c]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x180], 1
call fcn.0041b6ff
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push eax
call fcn.0040d7a5
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call fcn.0041e52e
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], 0
call fcn.0041e52e
test bl, bl
je 0x40762f
push 0x43a10c
mov ecx, esi
call fcn.0041e8be
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407814
mov ebx, 1
mov dword [esp + 0x2c], ebx
lea eax, [ebp + 0x9c0]
lea ecx, [esp + 0x10]
push eax
call fcn.0041e2a3
push 0x43a2b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 2
call fcn.0041b7f3
mov esi, eax
cmp esi, 0xffffffff
je 0x4077c6
add esi, 2
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.0041b646
test ebx, ebx
mov byte [esp + 0x178], 3
jle 0x407736
mov eax, dword [esp + 0x1c]
xor esi, esi
mov edi, dword [eax - 8]
test edi, edi
jle 0x407733
mov al, byte [eax + esi]
mov byte [esp + 0x30], al
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
cmp eax, 1
mov eax, dword [esp + 0x1c]
jne 0x4076d2
add esi, 2
jmp 0x4076d9
cmp byte [eax + esi], 0x5c
je 0x4076df
inc esi
cmp esi, edi
jge 0x407733
jmp 0x4076b2
cmp esi, edi
jge 0x407733
cmp esi, 0xffffffff
je 0x407736
mov ecx, dword [esp + 0x18]
inc esi
add ecx, esi
lea edx, [esp + 0x38]
mov dword [esp + 0x18], ecx
push esi
push edx
lea ecx, [esp + 0x24]
call fcn.0041b646
lea eax, [esp + 0x38]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x17c], 4
call fcn.0041e61b
lea ecx, [esp + 0x38]
mov byte [esp + 0x178], 3
call fcn.0041e52e
dec ebx
test ebx, ebx
jle 0x407736
jmp 0x4076a1
or esi, 0xffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x178], 2
call fcn.0041e52e
cmp esi, 0xffffffff
je 0x4077c6
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
dec ecx
push ecx
push edx
lea ecx, [ebp + 0x9c0]
call fcn.0041b77b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 5
call fcn.0041e61b
lea ecx, [esp + 0x24]
mov byte [esp + 0x178], 2
call fcn.0041e52e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4077c6
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4077ea
call fcn.0042ba6e
mov edi, dword [eax + 4]
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0041e2a3
mov ecx, edi
call fcn.00401570
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
inc ebx
mov byte [esp + 0x178], 0
mov dword [esp + 0x2c], ebx
call fcn.0041e52e
cmp esi, 0xffffffff
je 0x407814
jmp 0x40764a
mov ecx, ebp
call fcn.00407af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2100
mov ecx, ebp
call fcn.00406500
mov byte [esp + 0x178], 0
lea ecx, [esp + 0x10]
jmp 0x407aae
xor edi, edi
mov dword [ebp + 0x14e5c], edi
mov eax, dword [0x43ab24]
mov dword [esp + 0x20], eax
lea ecx, [ebp + 0x9c4]
lea edx, [esp + 0x30]
push ecx
push 0x43a150
push edx
mov byte [esp + 0x184], 6
call fcn.0041e7eb
push str..
push eax
lea eax, [esp + 0x2c]
mov bl, 7
push eax
mov byte [esp + 0x184], bl
call fcn.0041e777
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 8
call fcn.0041e61b
lea ecx, [esp + 0x24]
mov byte [esp + 0x178], bl
call fcn.0041e52e
lea ecx, [esp + 0x30]
mov byte [esp + 0x178], 6
call fcn.0041e52e
mov edx, dword [ebp + 0x14e5c]
lea ecx, [esp + 0x58]
shl edx, 4
push ecx
lea eax, [edx + ebp + 0x14e64]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041e2a3
mov ecx, ebp
call fcn.004036b0
cmp eax, 0xffffffff
mov dword [ebp + 0x14e5c], eax
jne 0x4078d4
mov ecx, ebp
call fcn.00407af0
jmp 0x407aa2
test eax, eax
mov dword [esp + 0x24], edi
jle 0x40790a
lea edx, [ebp + 0x14e70]
mov esi, eax
mov eax, dword [edx - 4]
mov ebx, dword [edx]
shl eax, 0x20
xor ecx, ecx
xor ebp, ebp
add eax, ebx
adc ecx, ebp
mov ebp, dword [esp + 0x24]
add ebp, eax
adc edi, ecx
add edx, 0x10
dec esi
mov dword [esp + 0x24], ebp
jne 0x4078e4
mov ebp, dword [esp + 0x34]
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [ebp + 0x9c0]
push 0
push 0
test esi, esi
push 0
je 0x407998
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.0040dc6f
push 0
push 0
lea edx, [esp + 0x58]
push 0x43a10c
lea eax, [esp + 0x8c]
push edx
push eax
call fcn.0040dbde
add esp, 0x28
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x64]
lea eax, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
call esi
test eax, eax
jne 0x40798e
mov ecx, ebp
call fcn.00407af0
push 0x2ff0
mov ecx, ebp
call fcn.00406500
jmp 0x407aa2
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
jmp 0x4079fa
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0040dc6f
push 0
push 0
lea eax, [esp + 0x38]
push 0x43a10c
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.0040dbde
add esp, 0x28
lea edx, [esp + 0x54]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push edx
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x407a4a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mul dword [esp + 0x40]
push 0
push ecx
push edx
push eax
call fcn.0040ddc0
cmp edx, edi
ja 0x407a1e
jb 0x407a06
cmp eax, dword [esp + 0x24]
ja 0x407a1e
mov ecx, ebp
call fcn.00407af0
push 0x2120
mov ecx, ebp
call fcn.00406500
jmp 0x407aa2
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 0
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call fcn.0041e52e
mov eax, 1
jmp 0x407ac9
mov ecx, ebp
call fcn.00407af0
push str.ERR_MES_ERROR_OCCURRED
lea edx, [esp + 0x38]
push str.ERROR
push edx
mov ecx, ebp
call fcn.00402890
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 9
call fcn.0041e61b
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 6
call fcn.0041e52e
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041e2a3
mov ecx, ebp
call fcn.004068b0
mov byte [esp + 0x178], 0
lea ecx, [esp + 0x20]
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call fcn.0041e52e
xor eax, eax
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x16c
ret