Function at 0x416500
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58507c
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x60c044]
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, dword [ebp + 0xc]
push dword [ebp - 0x69c]
mov esi, dword [ebp + 8]
push ebx
push dword [ebx + 4]
mov dword [ebp - 0x694], ebx
push dword [ebx]
call fcn.0040a3e0
mov eax, dword [ebx]
lea ecx, [ebp - 0x690]
add esp, 0x10
mov dword [ebx + 4], eax
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x68c], 0
call fcn.00418a30
mov dword [ebp - 0x690], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 5
xor eax, eax
mov dword [ebp - 0x424], 7
push str..wnpf
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00403620
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
push dword [ebp - 0x69c]
lea ecx, [ebp - 0x690]
push eax
push 0
lea eax, [ebp - 0x6a0]
push eax
call fcn.00419c00
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4165f5
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
push 6
xor eax, eax
mov dword [ebp - 0x424], 7
push str..swnpf
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00403620
mov byte [ebp - 4], 2
lea eax, [ebp - 0x438]
push dword [ebp - 0x69c]
lea ecx, [ebp - 0x690]
push eax
push 0
lea eax, [ebp - 0x6a0]
push eax
call fcn.00419c00
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x41666b
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
push esi
lea eax, [ebp - 0x420]
push str._s.
push eax
call fcn.004030d0
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x698], edi
cmp edi, 0xffffffff
je 0x416989
lea eax, [ebp - 0x688]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x416989
cmp word [ebp - 0x65c], 0x2e
je 0x4166a5
mov ax, word [ebp - 0x65a]
test ax, ax
je 0x4166a5
cmp ax, 0x2e
jne 0x4166e1
cmp word [ebp - 0x658], 0
je 0x4166a5
test byte [ebp - 0x688], 0x10
jne 0x4166a5
mov eax, dword [ebp - 0x690]
mov esi, dword [eax]
cmp esi, eax
je 0x4166a5
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x416701
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.0042c25f
add esp, 8
test eax, eax
je 0x4167a4
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x218]
push 0x6012c8
push eax
call fcn.004030d0
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416740
sub ecx, edx
sar ecx, 1
sub ecx, dword [esi + 0x20]
add ecx, ecx
cmp ecx, 0x208
jae 0x416984
xor eax, eax
mov word [ebp + ecx - 0x218], ax
mov ecx, str.default
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41679b
test dx, dx
je 0x416797
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41679b
add eax, 4
add ecx, 4
test dx, dx
jne 0x416775
xor eax, eax
jmp 0x4167a0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4167f8
cmp byte [esi + 0xd], 0
jne 0x4167e7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4167cc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4167e7
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4167c0
jmp 0x4167e7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4167e5
cmp esi, dword [eax + 8]
jne 0x4167e5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4167d5
mov esi, eax
cmp esi, dword [ebp - 0x690]
jne 0x4166f6
jmp 0x4166a5
mov esi, dword [ebx]
mov dword [ebp - 0x69c], 0
cmp esi, dword [ebx + 4]
je 0x416918
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x424], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00403210
cmp word [ebp - 0x218], 0
jne 0x41684a
xor ecx, ecx
jmp 0x416862
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416853
sub ecx, edx
sar ecx, 1
mov edi, dword [ebp - 0x424]
lea eax, [ebp - 0x438]
mov ebx, dword [ebp - 0x438]
cmp edi, 8
push ecx
lea ecx, [ebp - 0x218]
cmovae eax, ebx
push ecx
push dword [ebp - 0x428]
push eax
call fcn.00402fc0
add esp, 0x10
test eax, eax
je 0x4168c4
cmp edi, 8
jb 0x4168aa
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [ebp - 0x438]
call fcn.00403830
mov ebx, dword [ebp - 0x694]
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x416810
mov esi, dword [ebp - 0x69c]
jmp 0x4168e4
mov esi, 1
cmp edi, 8
jb 0x4168de
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [ebp - 0x438]
call fcn.00403830
mov ebx, dword [ebp - 0x694]
mov edi, dword [ebp - 0x698]
test esi, esi
jne 0x4166a5
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], esi
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x41691c
xor ecx, ecx
jmp 0x416934
xor esi, esi
jmp 0x4168ea
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416925
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00403620
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00417f70
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4166a5
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
jmp 0x4166a5
call fcn.0041b5aa
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x690]
lea ecx, [ebp - 0x690]
push eax
push dword [eax]
lea eax, [ebp - 0x69c]
push eax
call fcn.00410340
push dword [ebp - 0x690]
call fcn.0041b43e
add esp, 4
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.0041b443
mov esp, ebp
pop ebp
ret 8