Function at 0x42575d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x479b74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x26c], edx
xor ecx, ecx
mov dword [ebp - 0x268], eax
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], ecx
mov esi, ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x264], edi
test eax, eax
jne 0x4257be
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x425988
mov ecx, eax
call fcn.00428e2c
mov ebx, eax
test ebx, ebx
js 0x425986
cmp dword [ebp - 0x26c], esi
je 0x4257b2
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push 0
mov edx, 0x409e50
call fcn.004268f1
mov ebx, eax
test ebx, ebx
js 0x425986
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x264]
call fcn.00416a04
mov edi, dword [ebp - 0x264]
test edi, edi
je 0x425977
cmp edi, 0xffffffff
je 0x425977
mov ecx, 0x407ef8
lea eax, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425877
test dx, dx
je 0x425873
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425877
add eax, 4
add ecx, 4
test dx, dx
jne 0x425851
xor eax, eax
jmp 0x42587c
sbb eax, eax
or eax, 1
test eax, eax
je 0x42591d
mov ecx, 0x407a68
lea eax, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4258b5
test dx, dx
je 0x4258b1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4258b5
add eax, 4
add ecx, 4
test dx, dx
jne 0x42588f
xor eax, eax
jmp 0x4258ba
sbb eax, eax
or eax, 1
test eax, eax
je 0x42591d
test byte [ebp - 0x258], 0x10
je 0x42591d
test esi, esi
je 0x4258d9
mov ecx, esi
call fcn.00427347
and dword [ebp - 0x25c], 0
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x25c]
push eax
push 0
lea edx, [ebp - 0x22c]
call fcn.004268f1
mov ebx, eax
test ebx, ebx
js 0x425968
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x278]
call fcn.00428fa1
mov ebx, eax
test ebx, ebx
js 0x425968
mov esi, dword [ebp - 0x25c]
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x425977
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x278]
push eax
call fcn.004272bf
jmp 0x42598d
mov ecx, ebx
call fcn.00427566
mov esi, dword [ebp - 0x25c]
jmp 0x42598d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov ebx, eax
mov ecx, ebx
call fcn.00427566
mov ecx, ebx
call fcn.0042757e
test edi, edi
je 0x4259a4
cmp edi, 0xffffffff
je 0x4259a4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x4259b5
mov ecx, eax
call fcn.00427347
test esi, esi
je 0x4259c0
mov ecx, esi
call fcn.00427347
push 0
lea ecx, [ebp - 0x278]
call fcn.00429588
lea ecx, [ebp - 0x270]
call fcn.0041702b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004729c0
leave
ret