Function at 0x401050
Capabilities:
Enumerate files on windows
Get disk information
Get disk size

Disassembly:
mov eax, 0x405cbc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x85c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x14], ebx
jne 0x4014dd
push 0x25
mov word [ebp - 0x30], 0x2a
pop ecx
mov word [ebp - 0x2e], bx
push 0x73
mov word [ebp - 0x34], cx
pop eax
mov word [ebp - 0x40], cx
push 1
mov word [ebp - 0x32], ax
mov word [ebp - 0x3e], ax
mov word [ebp - 0x3c], 0x5c
mov word [ebp - 0x3a], 0x2a
mov word [ebp - 0x38], bx
mov word [ebp - 0x50], cx
mov word [ebp - 0x4e], ax
mov word [ebp - 0x4c], cx
mov word [ebp - 0x4a], ax
mov word [ebp - 0x48], cx
mov word [ebp - 0x46], ax
mov word [ebp - 0x44], bx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [ebp + 8]
push 0x4073b8
push edi
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
push ebx
jne 0x401255
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
shr edi, 2
mov eax, edi
cmp eax, ebx
jle 0x401247
mov edi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push 8
lea eax, [ebp - 0x1c]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp word [ebp - 0x1c], 0x41
je 0x40123b
push 0x50
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x28
lea eax, [ebp - 0x90]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x90]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push 0x28
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xe0]
push 0x50
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40118e
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00401d43
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x164], eax
push 0x50
lea eax, [ebp - 0x158]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_wcscpy
push 0x28
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_wcscpy
push 0x208
lea eax, [ebp - 0x3a0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3a0]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 0x3c
lea eax, [ebp - 0x3a0]
lea ecx, [esi + 4]
push eax
call fcn.00401f16
add edi, 8
dec dword [ebp + 8]
jne 0x401111
push dword [ebp - 0x10]
call fcn.00405a0a
pop ecx
jmp 0x401405
mov ecx, esi
call fcn.00401d8f
push 0x208
lea eax, [ebp - 0x868]
push ebx
push eax
call sub.MSVCRT.dll_memset
push edi
call sub.MSVCRT.dll_wcslen
add esp, 0x10
cmp word [edi + eax*2 - 2], 0x5c
lea eax, [ebp - 0x34]
push edi
je 0x401286
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x868]
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4013cb
lea eax, [ebp - 0x304]
push 0x40702c
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x4013ae
lea eax, [ebp - 0x304]
push 0x407024
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x4013ae
push edi
call sub.MSVCRT.dll_wcslen
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
mov eax, 0x4073b8
je 0x401305
mov eax, 0x407020
lea ecx, [ebp - 0x304]
push ecx
push eax
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp - 0x660]
push eax
call sub.MSVCRT.dll_swprintf
mov eax, dword [ebp - 0x330]
add esp, 0x14
mov dword [ebp - 0x458], eax
push 1
push ebx
push ebx
push dword [ebp - 0x314]
call fcn.00405a70
mov ecx, dword [ebp - 0x310]
xor edi, edi
add eax, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x660]
adc edx, edi
push eax
mov dword [ebp - 0x44c], edx
call fcn.00401f16
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4012b6
push dword [ebp - 0x10]
jmp 0x4013f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x450], 0xffffffff
or dword [ebp - 0x44c], 0xffffffff
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x660]
push eax
lea ecx, [esi + 4]
call fcn.00401f16
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
mov ecx, esi
call fcn.00401d8f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [esi + 8]
mov edi, 0x2c0
cmp ecx, ebx
jne 0x40141f
mov dword [ebp + 8], ebx
jmp 0x40142c
mov eax, dword [esi + 0xc]
sub eax, ecx
mov ecx, edi
cdq
idiv ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x2c0
add eax, 9
push eax
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 0x1c]
mov dword [esi + 0x18], eax
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
push 8
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], edi
push dword [esi + 0x18]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x10], 8
jbe 0x4014a0
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
add ecx, eax
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 0x10]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [ebp - 0x10], edi
add dword [ebp + 8], edi
add esp, 0xc
dec dword [ebp - 0x14]
jne 0x40147c
lea edi, [esi + 4]
mov ecx, edi
call fcn.00401f27
push edi
lea ecx, [ebp - 0x68]
call fcn.00401e83
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
mov dword [ebp - 4], ebx
call fcn.00401f33
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401ef6
mov dword [esi + 0x14], 1
cmp dword [esi + 0x14], ebx
je 0x401560
mov edi, dword [ebp + 0x10]
mov eax, 0x1880c
push eax
mov dword [edi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [edi]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0xc]
mov ecx, 0x18800
add esp, 0x10
mov edi, dword [eax]
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x20]
cmp eax, ecx
jbe 0x401527
mov dword [edi + 8], ecx
mov byte [edi + 4], 1
mov dword [esi + 0x14], 1
jmp 0x401530
mov dword [edi + 8], eax
mov byte [edi + 4], bl
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x18]
push dword [edi + 8]
add eax, dword [esi + 0x20]
push eax
lea eax, [edi + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
add dword [esi + 0x20], eax
cmp byte [edi + 4], bl
jne 0x401560
push dword [esi + 0x18]
call fcn.00405a0a
pop ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc