Function at 0x4f40f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ccc6
mov eax, dword fs:[0]
push eax
sub esp, 0x6a4
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x674], edx
mov ebx, ecx
mov dword [ebp - 0x678], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x67c], eax
mov eax, dword [edx + 0x10]
inc eax
add eax, dword [ebx + 0x10]
cmp eax, 0x104
jbe 0x4f414a
xor al, al
jmp 0x4f443e
push 0x250
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.005481a0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005481a0
mov esi, dword [ebp - 0x674]
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x4f4183
mov eax, dword [esi]
jmp 0x4f4185
mov eax, esi
cmp dword [ebx + 0x14], 8
jb 0x4f418f
mov ecx, dword [ebx]
jmp 0x4f4191
mov ecx, ebx
push eax
push 0x5a565c
push ecx
push 0
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00553e19
add esp, 0x18
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f4143
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
nop word [eax + eax]
mov ecx, 0x5a6f3c
lea eax, [ebp - 0x644]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f4216
test dx, dx
je 0x4f4212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f4216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f41f0
xor eax, eax
jmp 0x4f421b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f441d
mov eax, 0x5af1b8
lea ecx, [ebp - 0x644]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4f4256
test dx, dx
je 0x4f4252
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4f4256
add ecx, 4
add eax, 4
test dx, dx
jne 0x4f4230
xor eax, eax
jmp 0x4f425b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f441d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005481a0
add esp, 0xc
test byte [ebp - 0x670], 0x10
jne 0x4f436b
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edx, esi
mov ecx, dword [eax]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4f42c4
push dword [ebp - 0x680]
lea eax, [ebp - 0x644]
mov edx, esi
push eax
call fcn.004f44a0
add esp, 8
cmp eax, esi
jne 0x4f441d
mov ecx, dword [ebp - 0x674]
call fcn.00403020
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.005473e4
add esp, 8
test eax, eax
je 0x4f441d
mov ecx, dword [ebp - 0x678]
push 0
call fcn.00403020
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.00553e19
push 0
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.00553e19
add esp, 0x30
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x6b0]
push eax
call fcn.00402a90
mov ecx, dword [ebp - 0x67c]
lea eax, [ebp - 0x6b0]
push eax
mov dword [ebp - 4], 0
call fcn.0040cbf0
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 4], 0xffffffff
call fcn.00403280
jmp 0x4f441d
mov ecx, dword [ebp - 0x678]
push 0
call fcn.00403020
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.00553e19
push 0
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.00553e19
add esp, 0x30
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x698]
push eax
call fcn.00402a90
push dword [ebp - 0x67c]
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x698]
call fcn.004f4030
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x684]
cmp eax, 8
jb 0x4f4400
push 2
inc eax
push eax
push dword [ebp - 0x698]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x684], 7
mov dword [ebp - 0x688], 0
mov word [ebp - 0x698], ax
lea eax, [ebp - 0x670]
push eax
push edi
call ebx
mov esi, dword [ebp - 0x674]
test eax, eax
jne 0x4f41e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f778
mov esp, ebp
pop ebp
ret