Function at 0x4075b9
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
mov eax, 0x40a773
call fcn.0040a160
sub esp, 0x50c
and byte [ebp - 0x518], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x517]
and byte [ebp - 0x1d0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1cf]
rep stosd dword es:[edi], eax
and byte [ebp - 0x3c], 0
and byte [ebp - 0x2d4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x3b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2d3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push esi
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x518]
push str..
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea ecx, [ebp - 0x8c]
call fcn.0040545e
xor edi, edi
lea ecx, [ebp - 0x8c]
push edi
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00405573
test eax, eax
jne 0x407693
mov dword [ebp + 0xc], edi
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x4076a9
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004054fc
mov eax, edi
jmp 0x4078f9
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
mov dword [ebp - 0x14], edi
test byte [ebp - 0x414], 0x10
je 0x4078ae
lea eax, [ebp - 0x3e8]
push 0x40e690
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4078ae
lea eax, [ebp - 0x3e8]
push 0x40e68c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4078ae
push esi
lea eax, [ebp - 0x1d0]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x1d0]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
lea eax, [ebp - 0x1d0]
push 0x40d0a0
push eax
call ebx
lea eax, [ebp - 0x3e8]
push esi
push eax
lea eax, [ebp - 0x1d0]
push eax
call ebx
push esi
lea eax, [ebp - 0x1d0]
push str._score.txt
push eax
call ebx
add esp, 0x3c
lea eax, [ebp - 0x1d0]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4078ae
and byte [ebp - 0xcc], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0xcb]
inc dword [ebp - 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
push 0
push eax
lea eax, [ebp - 0xcc]
push 0x40
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xcc]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x4078ac
push 0x15
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x3e8]
push eax
call fcn.0040752e
add esp, 0x14
test eax, eax
je 0x4078ac
lea ecx, [ebp - 0x8c]
call fcn.0040571a
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.004059b7
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4078ac
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00405abf
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4078ac
and dword [ebp - 0x10], 0
push 2
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00405bc8
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
je 0x40789e
push esi
lea eax, [ebp - 0x2d4]
push str.Tue__13_Jun_2006_10:07:57_GMT_r_n
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0xcc]
push esi
push eax
lea eax, [ebp - 0x2d4]
push eax
call ebx
mov edi, dword [edi]
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2d4]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [ebp - 0x24]
push edi
call dword [eax + 0x10]
test edi, edi
mov byte [ebp - 4], 1
je 0x4078ac
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor edi, edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4078cf
cmp dword [ebp - 0x14], 0xfa
jbe 0x4076b3
lea ecx, [ebp - 0x8c]
mov dword [ebp + 0xc], edi
call fcn.00405699
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004054fc
push 1
pop eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret