Function at 0x100562c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fe2e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x1007b00c]
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 - 0x27c], edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
xor esi, esi
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], esi
cmp word [edi], ax
jne 0x10056311
xor ecx, ecx
jmp 0x10056323
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056314
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002e00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10056359
push 1
push 0x10067494
lea ecx, [ebp - 0x28]
call fcn.1000c400
push 3
push 0x1006a234
lea ecx, [ebp - 0x28]
call fcn.1000c400
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10056511
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x10069934
lea eax, [ebp - 0x24c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100563c6
test dx, dx
je 0x100563c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100563c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100563a0
xor eax, eax
jmp 0x100563cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x100564f3
mov ecx, 0x10069948
lea eax, [ebp - 0x24c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10056406
test dx, dx
je 0x10056402
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10056406
add eax, 4
add ecx, 4
test dx, dx
jne 0x100563e0
xor eax, eax
jmp 0x1005640b
sbb eax, eax
or eax, 1
test eax, eax
je 0x100564f3
test byte [ebp - 0x278], 0x10
je 0x100564f3
lea eax, [ebp - 0x24c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2ac]
call fcn.10048ee0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x10056446
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
cmp word [edx], ax
jne 0x1005646c
xor ecx, ecx
jmp 0x10056480
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056471
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x294]
call fcn.10002e00
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x294]
push eax
mov byte [ebp - 4], 2
call fcn.10057670
mov eax, dword [ebp - 0x280]
cmp eax, 8
jb 0x100564bb
inc eax
push eax
push dword [ebp - 0x294]
call fcn.10003020
xor eax, eax
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x284], 0
cmp eax, 8
jb 0x100564f3
inc eax
push eax
push dword [ebp - 0x2ac]
call fcn.10003020
lea eax, [ebp - 0x278]
push eax
push edi
call ebx
test eax, eax
jne 0x10056392
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10056523
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.10003020
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 - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret