Function at 0x417f70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9331
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4eef3c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4b0], ebx
mov dword [ebp - 0x4ac], ebx
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 4], 0
cmp dword [edx + 0x10], 0x101
jbe 0x417fff
mov dword [ebx], 0
mov eax, ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x418246
cmp dword [edx + 0x14], 8
jb 0x418007
mov edx, dword [edx]
push ecx
push edx
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x21c]
call fcn.00417f20
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00417ec0
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x4ac], edi
cmp edi, 0xffffffff
jne 0x418090
lea ecx, [ebp - 0x4a8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0
call fcn.00411c00
mov eax, ebx
jmp 0x418246
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp word [ebp - 0x470], ax
je 0x4180cf
lea eax, [ebp - 0x470]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4180c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040bb60
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
mov ebx, dword [0x4f6434]
mov esi, dword [ebp - 0x220]
cmp edx, ebx
jbe 0x41814e
mov edi, edx
sub edi, ebx
cmp edx, edi
jb 0x418262
cmp dword [0x4f6438], 8
lea eax, [ebp - 0x234]
mov ecx, 0x4f6424
cmovae ecx, dword [0x4f6424]
sub edx, edi
cmp ebx, edx
push ebx
cmovbe edx, ebx
cmp esi, 8
push ecx
cmovae eax, dword [ebp - 0x234]
push edx
lea eax, [eax + edi*2]
push eax
call fcn.0040d8f0
mov edi, dword [ebp - 0x4ac]
add esp, 0x10
test eax, eax
sete al
jmp 0x418150
xor al, al
test al, al
je 0x4181c0
xor eax, eax
mov dword [ebp - 0x238], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x24c], ax
lea ecx, [ebp - 0x24c]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], 0
push eax
call fcn.0040bf90
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00418270
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x4181ba
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c2a0
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 0
cmp esi, 8
jb 0x4181de
lea eax, [esi + 1]
push eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040c2a0
lea eax, [ebp - 0x49c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418090
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x4b0]
lea ecx, [ebp - 0x4a8]
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4a8], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x4a4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x4a0]
mov dword [esi + 8], eax
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0
call fcn.00411c00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488c1c
mov esp, ebp
pop ebp
ret
push str.invalid_string_position
call fcn.00489e17
int3