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

Disassembly:
sub esp, 0x370
mov eax, dword [0x431708]
mov dword [esp + 8], ecx
push ebx
push ebp
mov ecx, dword [eax + 0x71b0]
push esi
add ecx, 0x43
push edi
push ecx
lea edx, [esp + 0x3c]
push 0x401b18
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
mov edi, dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
add esp, 0xc
xor ebp, ebp
lea eax, [esp + 0x20]
push ebp
push ebp
lea ecx, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call edi
mov ecx, dword [0x431708]
mov ebx, dword [esp + 0x24]
mov esi, dword [ecx + 4]
lea eax, [esi + esi*4]
shl eax, 0x15
cdq
cmp ebx, edx
ja 0x408ebc
jb 0x4089d8
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x408ebc
xor eax, eax
cmp esi, ebp
jle 0x4089fe
lea edx, [ecx + 0x5a4]
cmp dword [edx], ebp
jne 0x4089fe
lea ebx, [esi - 1]
cmp eax, ebx
je 0x408ebc
inc eax
add edx, 0x358
cmp eax, esi
jl 0x4089e4
mov esi, dword [ecx + 0x71b0]
inc esi
cmp esi, 0x17
jle 0x408a0c
xor esi, esi
mov eax, dword [ecx + esi*4 + 0x7150]
test eax, eax
je 0x408a68
lea eax, [esi + 0x43]
lea ecx, [esp + 0x38]
push eax
push 0x401b18
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push 0
push 0
push edx
push eax
call edi
mov ecx, dword [0x431708]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
lea eax, [eax + eax*4]
shl eax, 0x15
cdq
cmp ebx, edx
ja 0x408b17
jb 0x408a68
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x408b17
inc ebp
cmp ebp, 0x17
jl 0x408a04
mov eax, dword [ecx + 0x71b4]
xor esi, esi
cmp eax, esi
je 0x408b86
mov eax, dword [ecx + 4]
xor edi, edi
cmp eax, esi
jle 0x408aff
mov ebp, dword [sym.imp.user32.dll_PostMessageA]
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + ecx + 0x5b8], eax
mov edx, dword [0x431708]
mov dword [esi + edx + 0x5bc], eax
mov ecx, dword [0x431708]
mov dword [esi + ecx + 0x50c], eax
mov edx, dword [0x431708]
mov dword [esi + edx + 0x514], eax
mov ecx, dword [0x431708]
mov dword [esi + ecx + 0x510], eax
mov ecx, dword [0x431708]
cmp dword [esi + ecx + 0x5a4], eax
je 0x408af1
mov edx, dword [ebx + 0xc]
push edi
push 0x40
push 0xa00
push edx
call ebp
mov ecx, dword [0x431708]
mov eax, dword [ecx + 4]
inc edi
add esi, 0x358
cmp edi, eax
jl 0x408a91
push 0x401af4
call fcn.0041bb40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret
mov dword [ecx + 0x71b0], esi
mov eax, dword [0x431708]
xor esi, esi
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x408ebc
mov edi, dword [sym.imp.user32.dll_PostMessageA]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov ecx, dword [eax + ebp + 0x5a4]
test ecx, ecx
je 0x408b6d
mov eax, dword [ebx + 0xc]
push esi
push 0x800
push 0xa00
push eax
call edi
mov ecx, dword [ebx + 0xc]
push esi
push 0x1000
push 0xa00
push ecx
call edi
mov eax, dword [0x431708]
mov ecx, dword [eax + 4]
inc esi
add ebp, 0x358
cmp esi, ecx
jl 0x408b3b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov ecx, dword [esp + 0x2e]
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x288]
push 0x401ae4
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
mov edx, dword [0x431708]
add esp, 0x14
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 0x18
mov ebx, dword [edx + 0x71b0]
mov dword [esp + 0x14], ebx
inc ebx
cmp ebx, 0x17
jle 0x408beb
xor ebx, ebx
mov eax, dword [0x431708]
mov ecx, dword [eax + ebx*4 + 0x7150]
test ecx, ecx
je 0x408cdb
lea ecx, [ebx + 0x43]
lea edx, [esp + 0x38]
push ecx
push 0x401ad0
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408cdb
lea edx, [esp + 0x13c]
push edx
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x408cd4
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jne 0x408cbd
lea esi, [esp + 0x168]
lea eax, [esp + 0x27c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408c93
test cl, cl
je 0x408c8f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408c93
add eax, 2
add esi, 2
test cl, cl
jne 0x408c6f
xor eax, eax
jmp 0x408c98
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jle 0x408cbd
xor eax, eax
mov cl, byte [esp + eax + 0x168]
mov byte [esp + eax + 0x27c], cl
inc eax
test cl, cl
jne 0x408c9e
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x13c]
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x408c4b
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x408be3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x408dfe
xor ebx, ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x17
mov dword [esp + 0x10], eax
jle 0x408d10
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [0x431708]
mov edx, dword [ecx + eax*4 + 0x7150]
test edx, edx
je 0x408df4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
add edx, 0x43
push edx
push 0x401ad0
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408df4
lea eax, [esp + 0x13c]
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x408de5
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jne 0x408dd2
lea esi, [esp + 0x168]
lea eax, [esp + 0x27c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408db9
test cl, cl
je 0x408db5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408db9
add eax, 2
add esi, 2
test cl, cl
jne 0x408d95
xor eax, eax
jmp 0x408dbe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408dd2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x13c]
push ecx
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x408d71
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x408dfe
inc ebx
cmp ebx, 0x17
jl 0x408cfc
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.msvcrt.dll_sprintf]
lea edx, [esp + 0x27c]
add eax, 0x43
push edx
push eax
lea ecx, [esp + 0x40]
push 0x401ac0
push ecx
call ebx
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call fcn.00408820
test eax, eax
je 0x408ec7
lea eax, [esp + 0x38]
push eax
push 0x401a9c
call fcn.0041bb40
mov esi, dword [esp + 0x1c]
add esp, 8
mov eax, dword [0x431708]
cmp esi, dword [eax + 0x71b0]
je 0x408ebc
mov dword [eax + 0x71b0], esi
mov eax, dword [0x431708]
xor esi, esi
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x408ebc
mov edi, dword [sym.imp.user32.dll_PostMessageA]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov ecx, dword [eax + ebp + 0x5a4]
test ecx, ecx
je 0x408eae
mov eax, dword [ebx + 0xc]
push esi
push 0x800
push 0xa00
push eax
call edi
mov ecx, dword [ebx + 0xc]
push esi
push 0x1000
push 0xa00
push ecx
call edi
mov eax, dword [0x431708]
mov ecx, dword [eax + 4]
inc esi
add ebp, 0x358
cmp esi, ecx
jl 0x408e7c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret
mov edi, dword [esp + 0x10]
xor esi, esi
inc edi
cmp edi, 0x17
jle 0x408ed5
xor edi, edi
mov ecx, dword [0x431708]
mov eax, dword [ecx + edi*4 + 0x7150]
test eax, eax
je 0x408f13
lea edx, [edi + 0x43]
lea eax, [esp + 0x38]
push edx
push 0x401ad0
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408f22
inc esi
cmp esi, 0x17
jl 0x408ecd
mov dword [esp + 0x10], edi
jmp 0x408fe4
lea eax, [esp + 0x13c]
mov dword [esp + 0x10], edi
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x408fd3
lea esi, [esp + 0x168]
lea eax, [esp + 0x27c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x408f73
test cl, cl
je 0x408f6f
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x408f73
add eax, 2
add esi, 2
test cl, cl
jne 0x408f4b
xor eax, eax
jmp 0x408f78
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408fa9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x13c]
push ecx
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_FindNextFileA]
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
je 0x408fbe
lea edx, [esp + 0x13c]
push edx
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x408f3d
jmp 0x408fd3
xor eax, eax
mov cl, byte [esp + eax + 0x168]
mov byte [esp + eax + 0x27c], cl
inc eax
test cl, cl
jne 0x408fc0
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.msvcrt.dll_sprintf]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x27c]
push eax
lea edx, [esp + 0x3c]
lea ecx, [esi + 0x43]
push ecx
push 0x401ac0
push edx
call ebx
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x38]
push eax
call fcn.00408820
test eax, eax
jne 0x40903f
mov eax, dword [0x4019e4]
cmp eax, 0xa
jge 0x409056
mov esi, eax
lea ecx, [esp + 0x38]
inc esi
push ecx
push 0x401a78
mov dword [0x4019e4], esi
call fcn.0041bb40
add esp, 8
jmp 0x408ecb
lea edx, [esp + 0x38]
push edx
push 0x401a9c
call fcn.0041bb40
add esp, 8
jmp 0x408e4f
mov eax, dword [0x431708]
mov dword [0x4019e4], 1
xor ebx, ebx
xor edi, edi
cmp dword [eax + 4], ebx
jle 0x4090e2
mov ebp, dword [sym.imp.user32.dll_PostMessageA]
xor esi, esi
mov dword [esi + eax + 0x5b8], ebx
mov eax, dword [0x431708]
mov dword [esi + eax + 0x5bc], ebx
mov ecx, dword [0x431708]
mov dword [esi + ecx + 0x50c], ebx
mov edx, dword [0x431708]
mov dword [esi + edx + 0x514], ebx
mov eax, dword [0x431708]
mov dword [esi + eax + 0x510], ebx
mov eax, dword [0x431708]
cmp dword [esi + eax + 0x5a4], ebx
je 0x4090d4
mov ecx, dword [esp + 0x18]
push edi
push 0x40
push 0xa00
mov edx, dword [ecx + 0xc]
push edx
call ebp
mov eax, dword [0x431708]
mov ecx, dword [eax + 4]
inc edi
add esi, 0x358
cmp edi, ecx
jl 0x409076
push 0x401a44
call fcn.0041bb40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret