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

Disassembly:
push 0xffffffffffffffff
push 0x40ed4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x374
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1474]
push edi
add eax, 0x43
lea ecx, [esp + 0x3c]
push eax
push 0x41351c
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
add esp, 0xc
xor ebp, ebp
lea edx, [esp + 0x20]
push ebp
push ebp
lea eax, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call edi
mov eax, dword [ebx + 0x290]
mov ecx, dword [esp + 0x24]
lea eax, [eax + eax*4]
shl eax, 0x15
cdq
cmp ecx, edx
ja 0x40a629
jb 0x40a227
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x40a629
mov esi, dword [ebx + 0x1474]
inc esi
cmp esi, 0x17
jle 0x40a235
xor esi, esi
mov eax, dword [ebx + esi*4 + 0x1478]
test eax, eax
je 0x40a28e
lea eax, [esi + 0x43]
lea ecx, [esp + 0x3c]
push eax
push 0x41351c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push 0
push 0
push edx
push eax
call edi
mov eax, dword [ebx + 0x290]
mov ecx, dword [esp + 0x24]
lea eax, [eax + eax*4]
shl eax, 0x15
cdq
cmp ecx, edx
ja 0x40a3a2
jb 0x40a28e
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x40a3a2
inc ebp
cmp ebp, 0x17
jl 0x40a22d
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov ecx, dword [esp + 0x32]
mov edx, dword [esp + 0x2e]
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x28c]
push 0x4134e8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [ebx + 0x1474]
add esp, 0x14
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0x18
inc ebx
cmp ebx, 0x17
jle 0x40a2f7
xor ebx, ebx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ebx*4 + 0x1478]
test eax, eax
je 0x40a444
lea eax, [ebx + 0x43]
lea ecx, [esp + 0x3c]
push eax
push 0x413508
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x140]
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a444
lea ecx, [esp + 0x140]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x40a43d
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jne 0x40a426
lea esi, [esp + 0x16c]
lea eax, [esp + 0x280]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a3e6
test cl, cl
je 0x40a39e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a3e6
add eax, 2
add esi, 2
test cl, cl
jne 0x40a37e
xor eax, eax
jmp 0x40a3eb
mov eax, dword [ebx + 0x290]
xor edi, edi
test eax, eax
mov dword [ebx + 0x1474], esi
jle 0x40a629
lea esi, [ebx + 0x1670]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a3d3
mov ecx, esi
call fcn.0040d4b0
mov ecx, esi
call fcn.0040d270
mov eax, dword [ebx + 0x290]
inc edi
add esi, 0x74
cmp edi, eax
jl 0x40a3be
jmp 0x40a629
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jle 0x40a426
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x280]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x140]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40a356
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x40a2ef
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40a55b
mov dword [esp + 0x10], 0
inc ebx
cmp ebx, 0x17
jle 0x40a46f
xor ebx, ebx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ebx*4 + 0x1478]
test eax, eax
je 0x40a549
lea eax, [ebx + 0x43]
lea ecx, [esp + 0x3c]
push eax
push 0x413508
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x140]
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a549
lea ecx, [esp + 0x140]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x40a53a
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jne 0x40a527
lea esi, [esp + 0x16c]
lea eax, [esp + 0x280]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a512
test cl, cl
je 0x40a50e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a512
add eax, 2
add esi, 2
test cl, cl
jne 0x40a4ee
xor eax, eax
jmp 0x40a517
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a527
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x140]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40a4ca
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40a55b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x17
mov dword [esp + 0x10], eax
jl 0x40a467
lea ecx, [esp + 0x14]
call fcn.0040dcaa
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x280]
push ecx
lea eax, [esp + 0x40]
lea edx, [edi + 0x43]
mov dword [esp + 0x390], 0
push edx
push 0x4134f8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0040a650
lea edx, [esp + 0x3c]
test eax, eax
push edx
je 0x40a5b2
push 0x8032
jmp 0x40a5b7
push 0x8033
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00403d70
mov eax, dword [esi + 0x1474]
add esp, 0x10
cmp edi, eax
je 0x40a615
mov eax, dword [esi + 0x290]
mov dword [esi + 0x1474], edi
xor edi, edi
test eax, eax
jle 0x40a615
add esi, 0x1670
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a605
mov ecx, esi
call fcn.0040d4b0
mov ecx, esi
call fcn.0040d270
mov edx, dword [esp + 0x18]
inc edi
add esi, 0x74
cmp edi, dword [edx + 0x290]
jl 0x40a5f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x384]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x380
ret