Function at 0x410a80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d50ed
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x693f30]
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 ecx, edx
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ad2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004066d0
mov dword [ebp - 4], 0
lea ebx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov edi, dword [ebp - 0x48]
cmovae ebx, dword [ebp - 0x58]
setae byte [ebp - 0x3f1]
test edi, edi
je 0x410bd4
push 0x100
lea eax, [ebp - 0x3f0]
push 0
push eax
call fcn.005a49e0
add esp, 0xc
mov ecx, 0x63ff54
mov edx, 0x100
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x410b81
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x3f0], 1
cmp ecx, 0x63ff56
jne 0x410b30
lea eax, [edi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea esi, [ebx + ecx*2]
nop dword [eax]
movzx eax, word [esi]
cmp ax, dx
jae 0x410b72
cmp byte [ebp + eax - 0x3f0], 0
jne 0x410b7b
cmp esi, ebx
je 0x410bd4
sub esi, 2
jmp 0x410b60
sub esi, ebx
sar esi, 1
jmp 0x410bd7
lea eax, [edi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea esi, [ebx + ecx*2]
movzx edi, word [esi]
mov eax, 0x5c
mov ecx, 0x63ff54
lea edx, [eax - 0x5b]
cmp ax, di
je 0x410bcb
cmp edx, 1
je 0x410bba
movzx eax, word [ecx + 2]
add ecx, 2
dec edx
cmp ax, di
jne 0x410ba4
test ecx, ecx
jne 0x410bcb
cmp esi, ebx
je 0x410bc3
sub esi, 2
jmp 0x410b8f
mov edi, dword [ebp - 0x48]
or esi, 0xffffffff
jmp 0x410bd7
mov edi, dword [ebp - 0x48]
sub esi, ebx
sar esi, 1
jmp 0x410bd7
or esi, 0xffffffff
cmp edi, esi
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], 0
cmovb esi, edi
mov dword [ebp - 0x14], 0
cmp byte [ebp - 0x3f1], 0
lea ecx, [ebp - 0x28]
push esi
cmovne eax, dword [ebp - 0x58]
push eax
call fcn.004066d0
push 0x63ff54
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004060c0
mov ecx, dword [ebp - 0x18]
mov eax, accept
sub eax, ecx
cmp eax, 3
jb 0x41126b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 3
cmovae eax, dword [ebp - 0x28]
push 0x640388
push ecx
push eax
push ecx
push dword [ebp - 0x3f8]
lea ecx, [ebp - 0x88]
call fcn.0040a060
mov dword [ebp - 0x3fc], 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f0]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x3f8], eax
cmp eax, 0xffffffff
jne 0x410daa
mov ecx, dword [ebp - 0x74]
mov dword [0x699d1c], 0
mov dword [0x699d20], 0
mov dword [0x699d24], 0
cmp ecx, 8
jb 0x410cea
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410ce0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp ecx, 8
jb 0x410d3b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410d31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x410d89
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410d7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov eax, 0x699d1c
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.005a1c7e
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
xor ebx, ebx
mov dword [ebp - 0x408], eax
xor esi, esi
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], esi
mov edi, dword [ebp - 0x3f8]
mov byte [ebp - 4], 7
nop word [eax + eax]
mov ecx, 0x63ff6c
lea eax, [ebp - 0x2c4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410e36
test dx, dx
je 0x410e32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410e36
add eax, 4
add ecx, 4
test dx, dx
jne 0x410e10
xor eax, eax
jmp 0x410e3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4110c0
mov ecx, 0x63ff70
lea eax, [ebp - 0x2c4]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410e76
test dx, dx
je 0x410e72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410e76
add eax, 4
add ecx, 4
test dx, dx
jne 0x410e50
xor eax, eax
jmp 0x410e7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4110c0
test byte [ebp - 0x2f0], 0x10
jne 0x4110c0
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ea0
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00405fb0
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..dll
push esi
call fcn.005b49ab
add esp, 8
test eax, eax
je 0x410ef6
push str..exe
push esi
call fcn.005b49ab
add esp, 8
test eax, eax
jne 0x41101c
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
cmovae ecx, ebx
push 0xa
push str.api_ms_win
push ecx
mov edx, edi
setae byte [ebp - 0x3f1]
call fcn.0040fc30
add esp, 0xc
cmp eax, 0xffffffff
jne 0x41101c
lea eax, [ebp - 0x40]
mov ecx, 0x699bf8
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00416e90
mov esi, dword [ebp - 0x410]
cmp byte [esi + 0xd], 0
jne 0x410f82
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jb 0x410f57
mov eax, dword [eax]
cmp byte [ebp - 0x3f1], 0
lea ecx, [ebp - 0x40]
push edx
cmovne ecx, ebx
mov edx, edi
push eax
call fcn.0040f660
add esp, 8
test eax, eax
je 0x410f76
js 0x410f82
cmp esi, dword [0x699bf8]
jne 0x41101c
mov edx, dword [ebp - 0x18]
mov eax, accept
sub eax, edx
cmp eax, edi
jb 0x41126b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp byte [ebp - 0x3f1], 0
cmovne eax, ebx
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x3f8]
lea ecx, [ebp - 0xa0]
call fcn.0040a060
mov eax, dword [ebp - 0x3fc]
or eax, 0x10
or eax, 2
mov byte [ebp - 4], 8
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00456fe0
add esp, 8
test al, al
je 0x41101c
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x70]
push 0xc
push 0x6403c0
push ecx
call fcn.0040fc30
add esp, 0xc
cmp eax, 0xffffffff
je 0x41101c
mov bl, 1
jmp 0x41101e
xor bl, bl
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x3fc]
test al, 2
je 0x411078
mov ecx, dword [ebp - 0x8c]
and eax, 0xfffffffd
mov dword [ebp - 0x3fc], eax
cmp ecx, 8
jb 0x411078
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41106e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov esi, dword [ebp - 0x400]
test bl, bl
mov ebx, dword [ebp - 0x404]
je 0x4110ba
lea eax, [ebp - 0x40]
push eax
cmp ebx, esi
je 0x4110a2
mov ecx, ebx
call fcn.004057d0
add ebx, 0x18
mov dword [ebp - 0x404], ebx
jmp 0x4110ba
push ebx
lea ecx, [ebp - 0x408]
call fcn.00416ce0
mov ebx, dword [ebp - 0x404]
mov esi, dword [ebp - 0x400]
mov edi, dword [ebp - 0x3f8]
lea eax, [ebp - 0x2f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410e00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x408]
mov dword [0x699d1c], eax
mov dword [0x699d20], ebx
mov dword [0x699d24], esi
cmp ecx, 8
jb 0x41112e
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411124
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x41117c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411172
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x4111cd
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4111c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp ecx, 8
jb 0x41121a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411210
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411266
push ecx
push edx
call fcn.005a242d
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x410d89
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410d7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410d7f
call fcn.005a7b3f
call fcn.004033f0
int3