Function at 0x519fe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f3111
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x1c], ecx
call fcn.00519f90
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x51a050
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.00403f00
mov eax, dword [esp + 0x88]
mov dword [esp + 0xf0], ebx
cmp eax, ebx
je 0x51a0a8
lea esi, [eax - 1]
cmp esi, eax
jbe 0x51a082
call fcn.005a01dd
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x51a094
lea eax, [esp + 0x78]
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x51a0a8
push 0x5c
push 1
lea ecx, [esp + 0x7c]
call fcn.0040e490
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc], 1
call fcn.00404050
push 3
push 0x5fe6ac
lea ecx, [esp + 0x60]
call fcn.00404150
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov esi, 0x10
or dword [edi + 4], esi
lea ecx, [edi + 4]
cmp dword [esp + 0x70], esi
jae 0x51a0fe
lea eax, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [edi + 0x144], eax
cmp eax, 0xffffffff
jne 0x51a150
cmp dword [esp + 0x70], esi
jb 0x51a124
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x51a46f
mov edx, dword [esp + 0x78]
push edx
jmp 0x51a467
cmp byte [edi + 0x30], 0x2e
lea edx, [edi + 0x30]
je 0x51a41d
mov ecx, edi
call fcn.00519f30
test al, al
je 0x51a1cd
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x51a179
lea eax, [esp + 0x78]
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
push ebp
mov ecx, edi
call eax
test al, al
jne 0x51a41d
cmp dword [esp + 0x70], esi
jb 0x51a1a0
mov edx, dword [esp + 0x5c]
push edx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x51a1c6
mov eax, dword [esp + 0x78]
push eax
call fcn.0059fc2a
add esp, 4
xor al, al
jmp 0x51a471
push 0x2e
push edx
call fcn.005a3060
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x51a41d
cmp dword [esp + 0x100], ebx
je 0x51a3f6
mov eax, ebp
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x51a210
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.00403f00
push 1
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xfc], 2
mov byte [esp + 0x20], 0x3b
call fcn.00445b10
mov esi, eax
cmp esi, ebx
push ebp
jle 0x51a49b
lea ecx, [esp + 0x40]
call fcn.00404010
push esi
push ebx
lea edx, [esp + 0xd0]
push edx
mov ecx, eax
mov byte [esp + 0xfc], 3
call fcn.004478f0
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0xf0], 5
jb 0x51a291
mov eax, dword [esp + 0x40]
push eax
call fcn.0059fc2a
add esp, 4
mov eax, ebp
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x51a2a6
sub eax, edx
push ebp
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00404010
push edi
inc esi
push esi
lea ecx, [esp + 0xb4]
push ecx
mov ecx, eax
mov byte [esp + 0xfc], 6
call fcn.004478f0
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0xf0], 8
jb 0x51a2f1
mov edx, dword [esp + 0x24]
push edx
call fcn.0059fc2a
add esp, 4
mov esi, dword [esp + 0x18]
inc esi
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x51a310
sub eax, edx
push eax
mov eax, dword [esp + 0xe0]
push esi
push eax
push ebx
lea ecx, [esp + 0xd8]
call fcn.00406860
test eax, eax
je 0x51a37f
push esi
lea ecx, [esp + 0xb0]
call fcn.00421cd0
test eax, eax
je 0x51a37f
lea ecx, [esp + 0xac]
call fcn.0045c050
lea ecx, [esp + 0xc8]
call fcn.0045c050
lea ecx, [esp + 0x90]
mov byte [esp + 0xf0], 1
call fcn.0045c050
mov edi, dword [esp + 0x1c]
mov esi, 0x10
jmp 0x51a41d
mov esi, 0x10
cmp dword [esp + 0xc4], esi
jb 0x51a39d
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], esi
jb 0x51a3cb
mov edx, dword [esp + 0xcc]
push edx
call fcn.0059fc2a
add esp, 4
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0xf0], 1
jb 0x51a3f1
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0059fc2a
add esp, 4
mov esi, 0x10
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x51a407
lea eax, [esp + 0x78]
mov edx, dword [edi]
lea ecx, [edi + 0x30]
push ecx
push eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test al, al
je 0x51a4cf
mov ecx, dword [edi + 0x144]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x51a150
cmp dword [esp + 0x70], esi
jb 0x51a449
mov eax, dword [esp + 0x5c]
push eax
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x51a46f
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0059fc2a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005a09eb
add esp, 0xe0
ret 0xc
mov eax, dword [esp + 0x1c]
inc eax
push eax
call fcn.005a1eab
add esp, 8
test eax, eax
je 0x51a3cf
lea ecx, [esp + 0x90]
mov byte [esp + 0xf0], 1
call fcn.0045c050
mov esi, 0x10
jmp 0x51a41d
cmp dword [esp + 0x70], esi
jb 0x51a4e2
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x51a1c6
mov edx, dword [esp + 0x78]
push edx
call fcn.0059fc2a
add esp, 4
xor al, al
jmp 0x51a471