Function at 0x4074e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4291f0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x438040]
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 - 0x26c], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
js 0x40792b
cmp ecx, edi
jg 0x40792b
cmp word [eax + ecx*2], 0x5c
je 0x40758e
mov ecx, dword [eax - 8]
lea esi, [edi + 1]
mov edx, 1
sub ecx, esi
sub edx, dword [eax - 4]
or edx, ecx
jge 0x40756d
push esi
lea ecx, [ebp + 8]
call fcn.0040d840
mov eax, dword [ebp + 8]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x40792b
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
push 0x38
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0040ee95
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
mov byte [ebp - 4], 1
lea edx, [ebp + 8]
push 0x4319e0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x294], 1
call fcn.00409cf0
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x26c]
or edi, 0xffffffff
mov dword [ebp - 0x268], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40760b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
cmp esi, 0xffffffff
jne 0x407640
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x407903
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x407903
test byte [ebp - 0x260], 0x10
jne 0x4078c2
push ecx
lea eax, [ebp - 0x234]
mov ecx, esp
push eax
lea edx, [ebp + 8]
call fcn.00409cf0
add esp, 4
lea ecx, [ebp - 0x290]
call fcn.00406e90
add esp, 4
mov dword [ebp - 4], 2
cmp dword [ebp - 0x288], 0
jne 0x407707
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.0040aaf0
mov eax, dword [ebp - 0x284]
push dword [eax + 4]
lea eax, [ebp - 0x284]
push eax
mov ecx, eax
call fcn.0040ba70
push 0x14
push dword [ebp - 0x284]
call fcn.0040e95e
mov eax, dword [ebp - 0x28c]
add esp, 8
push dword [eax + 4]
lea eax, [ebp - 0x28c]
push eax
mov ecx, eax
call fcn.0040b930
push 0x20
push dword [ebp - 0x28c]
call fcn.0040e95e
mov edx, dword [ebp - 0x290]
add esp, 8
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4078c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4078c2
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407710
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x290]
call fcn.0040d240
call fcn.0040db30
mov ecx, eax
test ecx, ecx
je 0x407921
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x40777d
movzx esi, ax
mov ecx, esi
call fcn.0040d010
test eax, eax
je 0x4077a2
push esi
push eax
lea ecx, [ebp - 0x264]
call fcn.0040d1a0
jmp 0x4077a2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407780
sub eax, edx
lea ecx, [ebp - 0x264]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040d240
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x264]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x40792b
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4077da
push esi
lea ecx, [ebp - 0x264]
call fcn.0040d840
mov eax, dword [ebp - 0x264]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00417d0b
mov eax, dword [ebp - 0x264]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40792b
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x264]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.00409620
mov ecx, eax
call fcn.00407960
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407842
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.0040aaf0
mov eax, dword [ebp - 0x284]
push dword [eax + 4]
lea eax, [ebp - 0x284]
push eax
mov ecx, eax
call fcn.0040ba70
push 0x14
push dword [ebp - 0x284]
call fcn.0040e95e
mov eax, dword [ebp - 0x28c]
add esp, 8
push dword [eax + 4]
lea eax, [ebp - 0x28c]
push eax
mov ecx, eax
call fcn.0040b930
push 0x20
push dword [ebp - 0x28c]
call fcn.0040e95e
mov edx, dword [ebp - 0x290]
add esp, 8
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4078bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407640
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x407903
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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.0040e950
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040d910
push 0x80070057
call fcn.0040d910
int3