Function at 0x402b20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569ba7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5c911c]
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 ebx, ecx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x270], 0xffffffff
call fcn.0041c065
mov ecx, eax
test ecx, ecx
je 0x402f40
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x26c], esi
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
js 0x402f36
cmp ecx, edi
jg 0x402f36
movzx ecx, word [eax + ecx*2]
cmp ecx, 0x5c
je 0x402c9b
movzx ecx, word [eax + edi*2 - 2]
cmp ecx, 0x2f
je 0x402c9b
mov ecx, 0x578650
mov dword [ebp - 0x274], ecx
sub ecx, eax
sar ecx, 1
push 1
push 0x578650
mov dword [ebp - 0x264], ecx
call fcn.0054ffd1
mov ecx, eax
add esp, 8
mov eax, 0x7fffffff
mov dword [ebp - 0x268], ecx
sub eax, ecx
cmp eax, edi
jl 0x402f36
lea ebx, [edi + ecx]
test ebx, ebx
js 0x402f36
mov eax, dword [ebp + 8]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x402c27
push ebx
lea ecx, [ebp + 8]
call fcn.00402910
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x264]
cmp ecx, edi
ja 0x402c3a
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x274], ecx
mov edx, dword [ebp - 0x268]
lea ecx, [eax + edi*2]
add edx, edx
je 0x402c80
test ecx, ecx
je 0x402c6d
mov eax, dword [ebp - 0x274]
push edx
test eax, eax
je 0x402c62
push eax
push ecx
call fcn.00549930
add esp, 0xc
jmp 0x402c7d
push 0
push ecx
call fcn.005497d0
add esp, 0xc
call fcn.0054fd74
mov dword [eax], 0x16
call fcn.0054fcb7
mov eax, dword [ebp + 8]
cmp ebx, dword [eax - 8]
jg 0x402f36
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + ebx*2], cx
mov ebx, dword [ebp - 0x278]
push ecx
mov edi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x264], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004026d0
add eax, 0x10
mov dword [edi], eax
mov edi, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x264], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004026d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402f50
or ebx, 0xffffffff
cmp dword [ebp + 0x10], 0
je 0x402ea3
push 0x578654
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004025e0
add esp, 0xc
mov ecx, dword [eax]
lea edi, [esi - 0x10]
mov byte [ebp - 4], 4
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x402d72
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x402d5d
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x402d5d
push edx
call fcn.004026d0
mov dword [ebp - 0x268], eax
add esp, 4
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402d4c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
add esi, 0x10
mov dword [ebp - 0x26c], esi
jmp 0x402d72
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.004029c0
mov esi, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x264]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402d93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x270], edi
cmp edi, 0xffffffff
je 0x402ebc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
or esi, 0xffffffff
jmp 0x402dc0
test byte [ebp - 0x260], 0x10
je 0x402e84
push 0x578658
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x402e84
push 0x57865c
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x402e84
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov edi, esp
push eax
mov dword [ebp - 0x274], edi
call fcn.004026d0
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004025e0
mov ecx, eax
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, esp
push 0x578650
push ecx
push eax
call fcn.004025e0
add esp, 0xc
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.00402f50
mov edx, dword [ebp - 0x268]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402e7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x270]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402dc0
mov esi, dword [ebp - 0x26c]
or ebx, 0xffffffff
mov edi, 1
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
je 0x402ebe
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402ebe
xor edi, edi
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402ed9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402ef7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402f16
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00547e39
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004026b0
push 0x80004005
call fcn.004026b0
int3