Function at 0x402d3f
Capabilities:
Check if file exists
Create process on windows
Delete file
Get disk information
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4052b0]
push ebx
push ebp
xor ebp, ebp
mov dword [eax + 0x28], ecx
mov eax, dword [0x4052b0]
push esi
push edi
mov dword [eax + 0x18], ebp
mov eax, dword [0x4052b0]
add eax, 0x13a34
push ebp
mov dword [esp + 0x1c], edx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ecx, dword [0x4052b0]
mov dword [ecx + 0x2c], eax
mov ecx, dword [0x4052b0]
mov eax, dword [ecx + 0x2c]
cmp eax, 0xffffffff
jne 0x402d95
add ecx, 0x13a34
call fcn.00402b97
jmp 0x4036ce
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push ebp
push eax
call esi
mov ecx, dword [0x4052b0]
push ebp
mov dword [ecx + 0x1c], eax
mov eax, dword [0x4052b0]
push dword [eax + 0x3447]
push dword [eax + 0x2c]
call esi
cmp eax, 0xffffffff
jne 0x402dca
call fcn.0040183c
jmp 0x4036ce
mov ecx, dword [0x4052b0]
cmp eax, dword [ecx + 0x1c]
jbe 0x402ddf
call fcn.00402b3c
jmp 0x4036ce
add ecx, 0x13d3c
push 4
lea eax, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esp + 0x14], 0
mov byte [esp + 0x16], 0x5c
mov dword [esp + 0x1c], ebp
je 0x402e10
cmp byte [esp + 0x15], 0x3a
jne 0x402e10
lea eax, [esp + 0x14]
jmp 0x402e12
xor eax, eax
push ebp
lea ecx, [esp + 0x24]
push ebp
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [0x4052b0]
test byte [eax + 0x36a0], 4
je 0x402e48
lea ecx, [eax + 0x3440]
push 2
push ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll__lread]
mov cx, 0xa001
call fcn.0040159a
mov word [0x4052c0], bp
mov eax, dword [0x4052b0]
push 2
pop edi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
mov dword [eax + 0x36a2], ebp
lea eax, [esp + 0x12]
push edi
push eax
mov eax, dword [0x4052b0]
push dword [eax + 0x2c]
call esi
cmp eax, edi
jne 0x403604
cmp word [esp + 0x12], bp
je 0x403604
movsx eax, word [esp + 0x12]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x4052b0]
mov dword [ecx + 0x36a2], eax
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
cmp ecx, ebp
je 0x403518
mov ax, word [esp + 0x12]
mov word [ecx], ax
movsx eax, word [esp + 0x12]
sub eax, edi
push eax
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
add ecx, edi
push ecx
push dword [eax + 0x2c]
call esi
movsx ecx, word [esp + 0x12]
sub ecx, edi
cmp eax, ecx
jne 0x4035ff
mov eax, dword [0x4052b0]
mov eax, dword [eax + 0x36a2]
cmp word [eax + 2], 0x6c2d
jne 0x4035ff
cmp byte [eax + 4], 0x68
jne 0x4035ff
cmp byte [eax + 6], 0x2d
jne 0x4035ff
movzx eax, byte [eax + 5]
push eax
push 0x40521c
call sub.CRTDLL.dll_strchr
pop ecx
test eax, eax
pop ecx
je 0x4035ff
mov eax, dword [0x4052b0]
mov esi, dword [eax + 0x36a2]
mov dword [eax + 0x34], ebp
mov eax, dword [0x4052b0]
add esi, 0x18
mov word [eax + 0x244], bp
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
movzx cx, byte [ecx + 0x13]
mov word [eax + 0x242], cx
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
mov ecx, dword [ecx + 0xf]
mov dword [eax + 0x36ae], ecx
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36ae]
mov dword [eax + 0x36a6], ecx
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36ae]
mov dword [eax + 0x36aa], ecx
mov ax, word [esi]
cmp ax, bp
je 0x402fb5
movsx edi, ax
mov edx, edi
lea ecx, [esi + 2]
call fcn.004023cf
add esi, edi
jmp 0x402f9c
mov eax, dword [0x4052b0]
mov eax, dword [eax + 0x34]
cmp eax, ebp
je 0x4035ff
mov word [eax], bp
mov eax, dword [0x4052b0]
mov word [eax + 0x248], bp
mov eax, dword [0x4052b0]
movsx edx, word [esp + 0x12]
mov ecx, dword [eax + 0x36a2]
call fcn.004015e5
mov ecx, dword [0x4052b0]
cmp ax, word [ecx + 0x240]
jne 0x4035ff
mov ax, word [ecx + 0x244]
cmp ax, bp
je 0x403026
movzx eax, ax
inc eax
add ecx, 0x136b2
push eax
push dword [ecx - 0x1367a]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [0x4052b0]
movzx eax, word [ecx + 0x246]
inc eax
push eax
movzx eax, word [ecx + 0x244]
push dword [ecx + 0x3c]
lea eax, [eax + ecx + 0x136b2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x4052b0]
mov dl, 0x2f
lea ecx, [eax + 0x136b2]
call fcn.00401150
cmp dword [esp + 0x18], 1
jne 0x4030cf
mov eax, dword [0x4052b0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x405218
mov ecx, dword [eax + 0x36a2]
add eax, 0x136b2
push eax
mov cx, word [ecx + 0x15]
xor word [0x4052c0], cx
call esi
test eax, eax
jne 0x40309b
mov eax, dword [0x4052b0]
mov byte [eax + 0x3446], 1
jmp 0x4030c1
mov eax, dword [0x4052b0]
push 0x405214
add eax, 0x136b2
push eax
call esi
test eax, eax
jne 0x403506
mov eax, dword [0x4052b0]
mov byte [eax + 0x3446], 2
mov eax, dword [0x4052b0]
or dword [eax + 0x30], 0xffffffff
jmp 0x403358
mov eax, dword [0x4052b0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
add eax, 0x136b2
push 0x405218
push eax
call esi
test eax, eax
je 0x403506
mov eax, dword [0x4052b0]
push 0x405214
add eax, 0x136b2
push eax
call esi
test eax, eax
je 0x403506
mov eax, dword [0x4052b0]
lea ecx, [eax + 0x136b2]
lea edx, [eax + 0x13d3c]
push ecx
lea ecx, [eax + 0x13b38]
call fcn.00401406
mov eax, dword [0x4052b0]
mov dl, 0x2f
lea ecx, [eax + 0x13b38]
call fcn.00401150
mov eax, dword [0x4052b0]
cmp byte [eax + 0x13b38], 0
lea ecx, [eax + 0x13b38]
je 0x40315b
cmp byte [eax + 0x13b39], 0x3a
jne 0x40315b
lea ecx, [eax + 0x13b3a]
xor edx, edx
cmp dword [esp + 0x1c], 0xff
sete dl
call fcn.0040285d
mov eax, dword [0x4052b0]
push 0x20
lea edx, [eax + 0x13b38]
lea ecx, [eax + 0x17e3c]
call fcn.004014d9
mov eax, dword [0x4052b0]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [eax + 0x17e3c]
push ecx
push 0x65
push dword [eax + 0x28]
call esi
mov eax, dword [0x4052b0]
push 0x405208
push 0x66
push dword [eax + 0x28]
call esi
mov eax, dword [0x4052b0]
lea ecx, [eax + 0x13b38]
call fcn.0040118d
mov eax, dword [0x4052b0]
mov esi, 0x405204
push 1
mov edx, esi
lea ecx, [eax + 0x13b38]
call fcn.00402ce5
test al, al
je 0x4031f0
mov eax, dword [0x4052b0]
push 3
mov edx, esi
lea ecx, [eax + 0x13b38]
call fcn.00402ce5
cmp dword [0x4052ac], ebp
jne 0x40320b
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
add ecx, 0xf
call fcn.004024f2
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
cmp byte [ecx + 5], 0x64
mov edi, dword [ecx + 0xf]
je 0x4032ea
add eax, 0x13b38
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [0x4052b0]
cmp ebx, 0xffffffff
je 0x4032ea
lea ecx, [eax + 0x13b38]
call fcn.00402ca9
mov esi, eax
mov eax, dword [0x4052b0]
push 0x405098
lea ecx, [eax + 0x13b38]
add eax, 0x17e3c
push ecx
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [0x4052bc], ebp
je 0x403281
cmp esi, edi
jb 0x403281
push 7
jmp 0x40328b
cmp dword [0x4052a4], ebp
je 0x40328e
push 6
pop eax
jmp 0x4032af
mov eax, dword [0x4052b0]
push 0x2023
lea ecx, [eax + 0x1923c]
push ecx
lea ecx, [eax + 0x17e3c]
push ecx
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x4035f1
cmp eax, 7
je 0x403506
mov eax, dword [0x4052b0]
cmp byte [eax + 0x36a1], 0
je 0x4032ea
test bl, 0x10
jne 0x4032ea
add eax, 0x13b38
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
cmp byte [ecx + 5], 0x64
je 0x40332b
push ebp
push 0x80
push 2
push ebp
push ebp
add eax, 0x13b38
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x4052b0]
mov dword [ecx + 0x30], eax
mov eax, dword [0x4052b0]
cmp dword [eax + 0x30], 0xffffffff
je 0x403537
jmp 0x40335d
cmp dword [0x4052ac], 1
jle 0x40335d
push ebp
push 0x2000080
push 3
push ebp
push ebp
add eax, 0x13b38
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x4052b0]
mov dword [ecx + 0x30], eax
mov eax, dword [0x4052b0]
mov word [eax + 0x248], bp
mov eax, dword [0x4052b0]
or dword [eax], 0xffffffff
mov eax, dword [0x4052b0]
mov eax, dword [eax + 0x36a2]
mov cl, byte [eax + 5]
cmp cl, 0x30
jne 0x403389
mov ecx, dword [eax + 0xb]
call fcn.004020f6
jmp 0x403393
cmp cl, 0x64
je 0x403393
call fcn.00401f41
mov ecx, dword [0x4052b0]
push 1
pop esi
cmp dword [esp + 0x18], esi
jne 0x4033f6
cmp dword [ecx + 0x18], ebp
jne 0x403547
mov al, byte [ecx + 0x3446]
cmp al, 1
jne 0x4033dc
lea eax, [ecx + 0x1923c]
push 0x2024
push eax
lea eax, [ecx + 0x17e3c]
push eax
push dword [ecx + 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x403553
jmp 0x4033e5
cmp al, 2
jne 0x4033e5
call fcn.004029d2
mov eax, dword [0x4052b0]
and byte [eax + 0x3446], 0
jmp 0x402e58
cmp dword [ecx + 0x18], ebp
mov eax, dword [ecx + 0x36a2]
jne 0x403560
cmp byte [eax + 5], 0x64
mov eax, dword [0x4052ac]
jne 0x403418
cmp eax, esi
jle 0x402e58
cmp eax, ebp
jne 0x403447
add ecx, 0x36a6
call fcn.004024f2
mov eax, dword [0x4052b0]
lea ecx, [eax + 0x36ae]
call fcn.004024f2
mov eax, dword [0x4052b0]
lea ecx, [eax + 0x36aa]
call fcn.004024f2
mov eax, dword [0x4052b0]
lea edx, [esp + 0x34]
mov ecx, dword [eax + 0x36a6]
call fcn.00402c79
mov eax, dword [0x4052b0]
lea edx, [esp + 0x24]
mov ecx, dword [eax + 0x36ae]
call fcn.00402c79
mov eax, dword [0x4052b0]
lea edx, [esp + 0x2c]
mov ecx, dword [eax + 0x36aa]
call fcn.00402c79
mov eax, dword [0x4052b0]
mov eax, dword [eax + 0x30]
cmp eax, 0xffffffff
je 0x4034bc
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [0x4052b0]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4035a0
mov ecx, dword [0x4052b0]
mov eax, dword [ecx + 0x36a2]
cmp byte [eax + 5], 0x64
je 0x4034df
mov dx, word [ecx + 0x248]
cmp dx, word [eax + 0x15]
jne 0x4035cf
cmp byte [ecx + 0x36a1], 0
je 0x402e58
movzx eax, word [ecx + 0x242]
add ecx, 0x13b38
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x402e58
call fcn.00402b60
test eax, eax
je 0x403604
jmp 0x402e58
lea ecx, [eax + 0x1923c]
push 0x2010
push ecx
push 0x4050d8
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4035f1
lea ecx, [eax + 0x13b38]
call fcn.00402b97
jmp 0x403604
and byte [ecx + 0x3446], 0
jmp 0x403604
mov eax, dword [0x4052b0]
mov dword [eax + 0x18], esi
jmp 0x403604
cmp byte [eax + 5], 0x64
jne 0x403572
cmp dword [0x4052ac], esi
jle 0x403604
mov eax, dword [ecx + 0x30]
cmp eax, 0xffffffff
je 0x403581
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
cmp byte [ecx + 5], 0x64
je 0x403604
add eax, 0x13b38
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403604
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
cmp byte [ecx + 5], 0x64
je 0x4035c2
add eax, 0x13b38
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4052b0]
lea edx, [eax + 0x13b38]
mov ecx, 0x405030
jmp 0x4035ec
add ecx, 0x13b38
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4052b0]
mov ecx, 0x4050b0
lea edx, [eax + 0x13b38]
call fcn.0040155d
mov eax, dword [0x4052b0]
mov dword [eax + 0x18], 1
jmp 0x403604
call fcn.00402bb2
mov eax, dword [0x4052b0]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x4052b0]
push 1
pop esi
cmp dword [esp + 0x18], esi
jne 0x40365b
cmp dword [eax + 0x18], ebp
jne 0x40365b
test byte [eax + 0x36a0], 4
je 0x40365b
mov cx, word [0x4052c0]
cmp cx, word [eax + 0x3440]
je 0x40365b
lea edx, [eax + 0x13b38]
mov ecx, 0x405068
call fcn.0040155d
mov eax, dword [0x4052b0]
mov dword [eax + 0x18], esi
mov eax, dword [0x4052b0]
cmp dword [esp + 0x18], ebp
jne 0x4036ae
cmp byte [eax + 0x359d], 0
lea edx, [eax + 0x359d]
je 0x4036ae
cmp dword [eax + 0x18], ebp
jne 0x4036ae
lea ecx, [eax + 0x17e3c]
call fcn.004028cd
mov ecx, dword [0x4052b0]
push 5
lea edx, [ecx + 0x13d3c]
push edx
mov dl, byte [eax]
neg dl
sbb edx, edx
and edx, eax
lea eax, [ecx + 0x17e3c]
push edx
push eax
push ebp
push dword [ecx + 0x28]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [0x4052b0]
mov ecx, dword [eax + 0x36a2]
cmp ecx, ebp
je 0x4036c4
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x4052b0]
xor ecx, ecx
cmp dword [eax + 0x18], ebp
sete cl
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret