Function at 0x402c00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e0ac
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5d80cc]
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 - 0x270], ebx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 3
call fcn.0041cde4
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40300c
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], 4
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
js 0x403002
cmp ecx, edi
jg 0x403002
movzx ecx, word [eax + ecx*2]
cmp ecx, 0x5c
je 0x402d71
movzx ecx, word [eax + edi*2 - 2]
cmp ecx, 0x2f
je 0x402d71
mov ecx, 0x57e680
sub ecx, eax
sar ecx, 1
push 1
push 0x57e680
mov dword [ebp - 0x264], ecx
call fcn.005536d6
mov ecx, eax
add esp, 8
mov eax, 0x7fffffff
mov dword [ebp - 0x268], ecx
sub eax, ecx
cmp eax, edi
jl 0x403002
lea ebx, [edi + ecx]
test ebx, ebx
js 0x403002
mov eax, dword [ebp + 8]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ebx
or eax, ecx
jge 0x402cfc
push ebx
lea ecx, [ebp + 8]
call fcn.004029b0
mov ecx, dword [ebp - 0x264]
cmp ecx, edi
ja 0x402d0e
mov eax, dword [ebp + 8]
lea edx, [eax + ecx*2]
jmp 0x402d13
mov edx, 0x57e680
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x268]
lea eax, [eax + edi*2]
add ecx, ecx
je 0x402d53
test eax, eax
je 0x402d43
push ecx
test edx, edx
je 0x402d38
push edx
push eax
call fcn.0054d830
add esp, 0xc
jmp 0x402d53
push 0
push eax
call fcn.0054ddb0
add esp, 0xc
call fcn.00550afc
mov dword [eax], 0x16
call fcn.00550a3f
mov eax, dword [ebp + 8]
cmp ebx, dword [eax - 8]
jg 0x403002
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + ebx*2], cx
mov ebx, dword [ebp - 0x270]
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.00402770
add eax, 0x10
mov dword [edi], eax
mov edi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x264], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402770
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00403020
or edi, 0xffffffff
cmp dword [ebp + 0x10], 0
je 0x402f90
push 0x57e684
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00402680
add esp, 0xc
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 6
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x402e4c
mov eax, dword [ebx + 0xc]
lea esi, [ebx + 0xc]
shr eax, 0x1f
test al, al
jne 0x402e37
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x402e37
push edx
call fcn.00402770
mov dword [ebp - 0x268], eax
add esp, 4
mov eax, edi
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402e26
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
add esi, 0x10
mov dword [ebp - 0x26c], esi
jmp 0x402e4c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.00402a60
mov esi, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x264]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402e6d
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 ebx, eax
mov dword [ebp - 0x264], ebx
cmp ebx, 0xffffffff
je 0x402f97
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, eax
jmp 0x402ea0
test byte [ebp - 0x260], 0x10
je 0x402f61
push 0x57e688
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x402f61
push 0x57e68c
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x402f61
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x278], esp
mov edi, esp
push eax
mov dword [ebp - 0x274], edi
call fcn.00402770
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00402680
mov ecx, eax
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, esp
push 0x57e680
push ecx
push eax
call fcn.00402680
add esp, 0xc
mov ecx, dword [ebp - 0x270]
mov byte [ebp - 4], 9
call fcn.00403020
mov edx, dword [ebp - 0x268]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402f61
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_FindNextFileW]
test eax, eax
jne 0x402ea0
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x26c]
mov ebx, 1
jmp 0x402f99
mov ebx, 1
jmp 0x402f99
xor ebx, ebx
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402fb0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402fca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x402fe2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0054b836
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00402750
push 0x80004005
call fcn.00402750
int3