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

Disassembly:
mov eax, 0x40a52b
call fcn.0040a180
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.00405533
xor edi, edi
lea ecx, [ebp - 0x8c]
push edi
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00405648
test eax, eax
jne 0x4076b2
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 0x4076c8
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004055d1
mov eax, edi
jmp 0x407918
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
mov dword [ebp - 0x14], edi
test byte [ebp - 0x414], 0x10
je 0x4078cd
lea eax, [ebp - 0x3e8]
push 0x40e758
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4078cd
lea eax, [ebp - 0x3e8]
push 0x40e754
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4078cd
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 0x40d090
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 0x4078cd
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 0x4078cb
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.0040754d
add esp, 0x14
test eax, eax
je 0x4078cb
lea ecx, [ebp - 0x8c]
call fcn.004057ef
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405a8c
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4078cb
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00405b94
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4078cb
and dword [ebp - 0x10], 0
push 2
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00405c9d
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
je 0x4078bd
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 0x4078cb
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 0x4078ee
cmp dword [ebp - 0x14], 0xfa
jbe 0x4076d2
lea ecx, [ebp - 0x8c]
mov dword [ebp + 0xc], edi
call fcn.0040576e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004055d1
push 1
pop eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret