Function at 0x437687
Capabilities:
Check if file exists
Create directory
Delete file
Get disk information
Get file attributes

Disassembly:
push 0x14
mov eax, 0x56768f
call fcn.0053d330
push dword [ebp + 8]
call fcn.00435de9
pop ecx
test eax, eax
je 0x4377b9
call fcn.00437f60
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a551
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402332
push 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ef71
push 0x599b60
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00410c4d
test eax, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
setne bl
add ecx, 0xfffffff0
call fcn.00402728
test bl, bl
je 0x437701
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00416faf
push 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a583
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x437736
lea ecx, [ebx - 0x10]
call fcn.00402728
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
jmp 0x4377b4
mov esi, str.________.___
push esi
call fcn.005384e9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040b75d
mov esi, dword [ebp - 0x14]
mov eax, esi
call fcn.00435dca
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x437767
push esi
call edi
test eax, eax
je 0x4377a5
push 0
push 2
push 2
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4377a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea ecx, [ebx - 0x10]
call fcn.00402728
lea ecx, [esi - 0x10]
call fcn.00402728
xor eax, eax
inc eax
call fcn.0053d408
ret
lea ecx, [ebx - 0x10]
call fcn.00402728
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402728
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00402358
push 3
pop esi
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.0040a583
push 0x59f090
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00403481
mov ebx, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00402728
inc bl
je 0x437816
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 2
jg 0x437861
lea ecx, [eax - 0x10]
call fcn.00402728
xor eax, eax
jmp 0x43779f
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a583
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040248a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402728
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437861
xor esi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402728
mov eax, esi
jmp 0x43779f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00402358
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00437989
push 0x5c
push dword [ebp - 0x10]
call fcn.0053b9e5
xor esi, esi
pop ecx
pop ecx
cmp eax, esi
jne 0x43788f
or eax, 0xffffffff
jmp 0x437894
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a583
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040248a
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402728
push dword [ebp - 0x10]
call fcn.00437687
pop ecx
test eax, eax
je 0x4378ec
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.00402358
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402728
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402728
jmp 0x43784f