Function at 0x407540
Capabilities:
Accept command line arguments
Create thread
Empty the recycle bin
Get disk information
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.00408ee0
call fcn.0040b530
call fcn.00402fa0
mov dword [0x40c290], eax
test eax, eax
je 0x40797a
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
mov ebx, eax
push 0
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x401f34
push ebx
push dword [ebp - 4]
call fcn.004030e0
add esp, 0xc
test eax, eax
je 0x4075b9
push eax
mov dword [0x40c130], eax
call fcn.00403230
add esp, 4
mov dword [0x40c28c], 1
call fcn.00402c90
call fcn.00402ee0
call fcn.00402bb0
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
shl eax, 2
mov ebx, eax
shr ebx, 1
mov dword [ebp - 0xc], ebx
lea eax, [eax + eax*2]
add eax, eax
push eax
push 0x40c22c
call fcn.0040b610
lea eax, [ebx + ebx*2]
push eax
push 0x40c25c
call fcn.0040b610
lea esi, [ebx*4]
push esi
call fcn.0040b5c0
push esi
mov dword [ebp - 8], eax
call fcn.0040b5c0
mov edi, eax
add esp, 0x18
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
test eax, eax
je 0x40795e
test edi, edi
je 0x40795e
push esi
push 0
push eax
call fcn.0040b540
push esi
push 0
push edi
call fcn.0040b540
add esp, 0x18
test ebx, ebx
je 0x40769b
mov eax, dword [ebp - 8]
mov esi, edi
sub eax, edi
mov edi, ebx
mov dword [ebp - 0x18], eax
mov ebx, eax
push 0
push 0
push 1
push 0x406d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x406d40
push 0
push 0
mov dword [ebx + esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x407661
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
push 0x401f40
push edi
push dword [ebp - 4]
call fcn.004030e0
push 0x401f50
push edi
push dword [ebp - 4]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.004030e0
add esp, 0x18
mov edi, eax
test esi, esi
je 0x40774d
push esi
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
jle 0x4076f9
lea ebx, [ecx + 1]
cmp word [esi + ecx*2], 0x2c
jne 0x4076f1
xor edx, edx
inc ebx
mov word [esi + ecx*2], dx
inc ecx
cmp ecx, eax
jl 0x4076e3
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
nop dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
call fcn.0040b5c0
add esp, 4
mov esi, eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call fcn.00407110
push esi
call fcn.0040b5f0
mov esi, dword [ebp - 0x10]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
mov dword [ebp - 0x10], esi
sub ebx, 1
jne 0x407700
mov ebx, dword [ebp - 0xc]
test edi, edi
je 0x4077fc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov dword [ebp - 0x18], 1
call esi
xor ecx, ecx
test eax, eax
jle 0x407786
lea ebx, [ecx + 1]
nop
cmp word [edi + ecx*2], 0x2c
jne 0x40777e
xor edx, edx
inc ebx
mov word [edi + ecx*2], dx
inc ecx
cmp ecx, eax
jl 0x407770
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
nop dword [eax]
push edi
call esi
lea eax, [eax*2 + 2]
push eax
call fcn.0040b5c0
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jne 0x4077cb
cmp word [esi + 2], 0x3a
jne 0x4077cb
movzx eax, word [esi]
push eax
call fcn.00407480
jmp 0x4077d1
push esi
call fcn.00406b40
add esp, 4
push esi
call fcn.0040b5f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 4
push edi
call esi
lea edi, [edi + eax*2]
add edi, 2
sub ebx, 1
jne 0x407790
mov ebx, dword [ebp - 0xc]
test edi, edi
jne 0x40789e
cmp dword [ebp - 0x10], 0
jne 0x40789e
push 0x401f5c
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40789e
push 0x401f68
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [ebp - 0x1c]
push 0x401f74
push edi
push dword [ebp - 4]
call fcn.00403040
add esp, 0xc
cmp al, 1
jne 0x40784f
push 0
call fcn.00406e10
add esp, 4
call fcn.00402980
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x40787c
mov esi, 0x41
test bl, 1
je 0x407873
push esi
call fcn.00407480
add esp, 4
inc esi
shr ebx, 1
cmp si, 0x5a
jbe 0x407865
push 0x401f7c
push edi
push dword [ebp - 4]
call fcn.00403040
add esp, 0xc
test al, al
jne 0x40789b
push 0
call fcn.00406e10
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40792c
mov esi, ebx
nop dword [eax + eax]
push 1
push 0
push 0x40c25c
call fcn.0040b6f0
add esp, 0xc
sub esi, 1
jne 0x4078b0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
push dword [ebp - 8]
push ebx
call edi
mov esi, ebx
nop dword [eax + eax]
push 1
push 0
push 0x40c22c
call fcn.0040b6f0
add esp, 0xc
sub esi, 1
jne 0x4078e0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x14]
push ebx
call edi
call fcn.00402bb0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
sub eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
push dword [esi + eax]
call edi
push dword [esi]
call edi
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 4]
sub ebx, 1
jne 0x407916
jmp 0x40794b
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
push dword [ebp - 8]
push ebx
call esi
push 0xffffffffffffffff
push 1
push dword [ebp - 0x14]
push ebx
call esi
call fcn.00402bb0
push dword [ebp - 8]
call fcn.0040b5f0
push dword [ebp - 0x14]
call fcn.0040b5f0
add esp, 8
cmp dword [0x40c28c], 0
je 0x40796c
call fcn.00403260
push 0
push dword [0x40c290]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]