Function at 0x407ee0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x43e040]
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 dword [ebp - 4], 1
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x407f2b
mov esi, 0x80070057
jmp 0x408386
push 0x1c
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
call fcn.0040d94e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40808a
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
js 0x4083de
cmp ecx, edi
jg 0x4083de
cmp word [eax + ecx*2], 0x5c
je 0x407fd3
mov ecx, dword [eax - 8]
lea esi, [edi + 1]
mov edx, 1
sub ecx, esi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x407fb2
push esi
lea ecx, [ebp + 8]
call fcn.0040a0e0
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 0x4083de
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
push str..lib
lea edx, [ebp + 8]
lea ecx, [ebp - 0x26c]
call fcn.00408d90
add esp, 4
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x26c]
mov esi, eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408017
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x408041
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x408031
call esi
mov esi, eax
jmp 0x40835c
call esi
movzx esi, ax
or esi, 0x80070000
jmp 0x40835c
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x260], 0x10
jne 0x408073
push ecx
lea eax, [ebp - 0x234]
mov ecx, esp
push eax
lea edx, [ebp + 8]
call fcn.00408d90
add esp, 4
lea ecx, [ebp - 0x274]
call fcn.00407bf0
add esp, 4
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x408047
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4080b3
push ecx
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x274]
mov esi, esp
mov dword [ebp - 0x268], esi
lea ecx, [ecx - 0x10]
call fcn.0040a000
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00407bf0
add esp, 4
cmp dword [ebp - 0x270], 0
jne 0x4080c3
xor esi, esi
jmp 0x40835c
call fcn.00401550
mov ecx, eax
test ecx, ecx
je 0x4083e8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x264], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x274]
mov esi, dword [esi]
mov dword [ebp - 0x26c], esi
cmp byte [esi + 0xd], 0
jne 0x40832f
nop dword [eax]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x268], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x4083de
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x408137
push ebx
lea ecx, [ebp - 0x264]
call fcn.0040a580
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x268]
mov byte [eax + edi], 0x5b
cmp ebx, dword [edi - 8]
jg 0x4083de
mov dword [edi - 0xc], ebx
lea ecx, [ebp - 0x264]
mov byte [ebx + edi], 0
mov eax, dword [esi + 0x10]
push dword [eax - 0xc]
push eax
call fcn.0040a5e0
mov edi, dword [ebp - 0x264]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x268], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x4083de
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x4081a0
push ebx
lea ecx, [ebp - 0x264]
call fcn.0040a580
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x268]
mov byte [eax + edi], 0x5d
cmp ebx, dword [edi - 8]
jg 0x4083de
mov dword [edi - 0xc], ebx
mov byte [ebx + edi], 0
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x268], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x4083de
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x4081f1
push ebx
lea ecx, [ebp - 0x264]
call fcn.0040a580
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x268]
mov byte [eax + edi], 0xa
cmp ebx, dword [edi - 8]
jg 0x4083de
mov dword [edi - 0xc], ebx
mov byte [ebx + edi], 0
mov esi, dword [esi + 0x14]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x408288
nop word [eax + eax]
push dword [esi + 0x14]
lea eax, [ebp - 0x264]
push dword [esi + 0x10]
push str._d_s_n
push eax
call fcn.0040a7b0
mov eax, dword [esi + 8]
add esp, 0x10
cmp byte [eax + 0xd], 0
je 0x408264
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x408260
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x408260
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x408250
mov esi, eax
jmp 0x40827c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40827c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x408270
cmp byte [esi + 0xd], 0
je 0x408220
mov edi, dword [ebp - 0x264]
mov ebx, dword [edi - 0xc]
lea esi, [ebx + 1]
test esi, esi
js 0x4083de
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4082b9
push esi
lea ecx, [ebp - 0x264]
call fcn.0040a580
mov edi, dword [ebp - 0x264]
mov byte [ebx + edi], 0xa
cmp esi, dword [edi - 8]
jg 0x4083de
mov eax, dword [ebp - 0x26c]
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov esi, dword [eax + 8]
cmp byte [esi + 0xd], 0
je 0x4082fd
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x4082f5
cmp eax, dword [esi + 8]
jne 0x4082f5
mov eax, esi
mov esi, dword [esi + 4]
cmp byte [esi + 0xd], 0
je 0x4082e5
mov dword [ebp - 0x26c], esi
jmp 0x408322
mov ecx, dword [esi]
mov dword [ebp - 0x26c], esi
cmp byte [ecx + 0xd], 0
jne 0x408322
nop dword [eax + eax]
mov eax, dword [ecx]
mov esi, ecx
mov dword [ebp - 0x26c], esi
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x408310
cmp byte [esi + 0xd], 0
je 0x408100
or ebx, 0xffffffff
push dword [edi - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, edi
call fcn.00401870
add esp, 4
mov byte [ebp - 4], 2
mov esi, eax
add edi, 0xfffffff0
mov ecx, ebx
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40835c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x274]
push dword [eax + 4]
lea eax, [ebp - 0x274]
push eax
mov ecx, eax
call fcn.0040c200
push 0x1c
push dword [ebp - 0x274]
call fcn.0040dce4
mov eax, dword [ebp + 8]
add esp, 8
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4083a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4083c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.0040d660
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401290
push 0x80004005
call fcn.00401290
int3