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

Disassembly:
mov eax, 0x40a733
call fcn.0040a120
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.00405417
xor edi, edi
lea ecx, [ebp - 0x8c]
push edi
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0040552c
test eax, eax
jne 0x40764c
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 0x407662
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004054b5
mov eax, edi
jmp 0x4078b2
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
mov dword [ebp - 0x14], edi
test byte [ebp - 0x414], 0x10
je 0x407867
lea eax, [ebp - 0x3e8]
push 0x40e680
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x407867
lea eax, [ebp - 0x3e8]
push 0x40e67c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x407867
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 0x407867
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 0x407865
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.004074e7
add esp, 0x14
test eax, eax
je 0x407865
lea ecx, [ebp - 0x8c]
call fcn.004056d3
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405970
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x407865
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00405a78
test eax, eax
mov dword [ebp + 0xc], eax
je 0x407865
and dword [ebp - 0x10], 0
push 2
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00405b81
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
je 0x407857
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 0x407865
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 0x407888
cmp dword [ebp - 0x14], 0xfa
jbe 0x40766c
lea ecx, [ebp - 0x8c]
mov dword [ebp + 0xc], edi
call fcn.00405652
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004054b5
push 1
pop eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret