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

Disassembly:
push 0x14
mov eax, 0x567276
call fcn.0053ce40
push dword [ebp + 8]
call fcn.00435a0a
pop ecx
test eax, eax
je 0x4373da
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x14]
call fcn.00402723
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402337
push 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ea6c
push 0x599930
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004107c5
test eax, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
setne bl
add ecx, 0xfffffff0
call fcn.0040274b
test bl, bl
je 0x437322
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00416bb0
push 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409e7e
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x437357
lea ecx, [ebx - 0x10]
call fcn.0040274b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
jmp 0x4373d5
mov esi, str.________.___
push esi
call fcn.00537ff9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040b0de
mov esi, dword [ebp - 0x14]
mov eax, esi
call fcn.004359eb
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x437388
push esi
call edi
test eax, eax
je 0x4373c6
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 0x4373c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea ecx, [ebx - 0x10]
call fcn.0040274b
lea ecx, [esi - 0x10]
call fcn.0040274b
xor eax, eax
inc eax
call fcn.0053cf18
ret
lea ecx, [ebx - 0x10]
call fcn.0040274b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040274b
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040235d
push 3
pop esi
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00409e7e
push 0x59ede0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00402e8e
mov ebx, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040274b
inc bl
je 0x437437
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 2
jg 0x437482
lea ecx, [eax - 0x10]
call fcn.0040274b
xor eax, eax
jmp 0x4373c0
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409e7e
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040248f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040274b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437482
xor esi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, esi
jmp 0x4373c0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040235d
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004375aa
push 0x5c
push dword [ebp - 0x10]
call fcn.0053b4f5
xor esi, esi
pop ecx
pop ecx
cmp eax, esi
jne 0x4374b0
or eax, 0xffffffff
jmp 0x4374b5
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409e7e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040248f
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040274b
push dword [ebp - 0x10]
call fcn.004372a8
pop ecx
test eax, eax
je 0x43750d
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040235d
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.0040274b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
jmp 0x437470