Function at 0x409f60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4256a3
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x434008]
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]
lea eax, [ebp - 0x688]
push 0x250
push 0
push eax
call fcn.00414170
xor ecx, ecx
lea eax, [ebp - 0x42c]
mov edx, 0x200
mov dword [ebp - 0x438], ecx
add esp, 0xc
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edi, edi
je 0x40a034
cmp word [edi], cx
je 0x40a034
mov esi, edi
lea eax, [esi + 2]
mov dword [ebp - 0x68c], eax
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409fe0
sub esi, dword [ebp - 0x68c]
sar esi, 1
je 0x40a034
cmp esi, 0x200
jb 0x40a00f
push esi
lea ecx, [ebp - 0x438]
call fcn.00402830
mov ecx, dword [ebp - 0x438]
lea eax, [esi + esi]
push eax
mov eax, dword [ebp - 0x430]
push edi
lea eax, [eax + ecx*2]
push eax
call fcn.00414710
mov edx, dword [ebp - 0x434]
mov ecx, esi
add esp, 0xc
mov dword [ebp - 0x438], ecx
lea esi, [ecx + 4]
cmp esi, edx
jb 0x40a04d
push esi
lea ecx, [ebp - 0x438]
call fcn.00402830
mov ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x430]
movq xmm0, qword [str..]
movq qword [eax + ecx*2], xmm0
xor ecx, ecx
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x438], esi
mov word [eax + esi*2], cx
lea eax, [ebp - 0x688]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x68c], eax
cmp eax, 0xffffffff
je 0x40a48d
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x688], 0x10
jne 0x40a367
mov eax, dword [ebp - 0x430]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov dword [ebp - 0x438], edx
test edi, edi
je 0x40a11a
cmp word [edi], cx
je 0x40a11a
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40a0d0
sub esi, ecx
sar esi, 1
je 0x40a11a
cmp esi, dword [ebp - 0x434]
jb 0x40a0fb
push esi
lea ecx, [ebp - 0x438]
call fcn.00402830
mov edx, dword [ebp - 0x438]
lea eax, [esi + esi]
push eax
mov eax, dword [ebp - 0x430]
push edi
lea eax, [eax + edx*2]
push eax
call fcn.00414710
mov edx, esi
add esp, 0xc
mov dword [ebp - 0x438], edx
lea edi, [edx + 1]
cmp edi, dword [ebp - 0x434]
jb 0x40a137
push edi
lea ecx, [ebp - 0x438]
call fcn.00402830
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x430]
mov cx, word [0x42bf34]
mov word [eax + edx*2], cx
cmp word [ebp - 0x65c], 0
mov dword [ebp - 0x438], edi
je 0x40a1be
lea esi, [ebp - 0x65c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40a161
sub esi, ecx
sar esi, 1
je 0x40a1be
lea eax, [esi + edi]
mov dword [ebp - 0x690], eax
cmp eax, dword [ebp - 0x434]
jb 0x40a195
push eax
lea ecx, [ebp - 0x438]
call fcn.00402830
mov edi, dword [ebp - 0x438]
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x65c]
push eax
mov eax, dword [ebp - 0x430]
lea eax, [eax + edi*2]
push eax
call fcn.00414710
mov edi, dword [ebp - 0x690]
add esp, 0xc
mov dword [ebp - 0x438], edi
mov eax, dword [ebp - 0x430]
xor ecx, ecx
mov word [eax + edi*2], cx
xor eax, eax
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
cmp word [edx], ax
je 0x40a1ff
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a1f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402e30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov esi, dword [ebx + 4]
cmp eax, esi
jae 0x40a388
mov eax, dword [ebx]
lea ecx, [ebp - 0x28]
cmp eax, ecx
ja 0x40a388
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [ebx + 8]
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x694], edi
cmp esi, eax
jne 0x40a2c9
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x40a2c9
mov ecx, dword [ebx]
mov eax, 0x2aaaaaab
sub esi, ecx
imul esi
mov eax, 0xaaaaaaa
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
sub eax, edi
cmp eax, 1
jb 0x40a47c
mov edx, dword [ebx + 8]
mov eax, 0x2aaaaaab
sub edx, ecx
inc edi
imul edx
mov ecx, 0xaaaaaaa
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
xor edx, edx
mov eax, esi
shr eax, 1
sub ecx, eax
add eax, esi
cmp ecx, esi
mov ecx, ebx
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0040432c
mov edi, dword [ebp - 0x694]
mov eax, dword [ebx]
lea ecx, [edi + edi*2]
mov edi, dword [ebx + 4]
lea esi, [eax + ecx*8]
test edi, edi
je 0x40a341
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x40a2f0
mov eax, dword [edi]
jmp 0x40a2f2
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x14], 8
jae 0x40a314
mov eax, dword [esi + 0x10]
add eax, 1
je 0x40a31a
add eax, eax
push eax
push esi
push edi
call fcn.00413700
add esp, 0xc
jmp 0x40a31a
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], ecx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40a33c
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x14]
add dword [ebx + 4], 0x18
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40a35e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401b20
mov eax, dword [ebp - 0x68c]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x688]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40a481
mov eax, dword [ebp - 0x68c]
jmp 0x40a0a0
mov eax, dword [ebx + 8]
cmp esi, eax
jne 0x40a404
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x40a404
sub esi, dword [ebx]
mov eax, 0x2aaaaaab
imul esi
mov eax, 0xaaaaaaa
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
sub eax, edi
cmp eax, 1
jb 0x40a47c
mov ecx, dword [ebx + 8]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
inc edi
imul ecx
mov ecx, 0xaaaaaaa
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
xor edx, edx
mov eax, esi
shr eax, 1
sub ecx, eax
add eax, esi
cmp ecx, esi
mov ecx, ebx
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0040432c
mov esi, dword [ebx + 4]
test esi, esi
je 0x40a341
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40a427
mov eax, dword [esi]
jmp 0x40a429
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x14], 8
jae 0x40a44e
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x40a456
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00413700
add esp, 0xc
jmp 0x40a456
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, 7
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
jmp 0x40a344
call fcn.00403c3d
push dword [ebp - 0x68c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x42c]
cmp eax, ecx
je 0x40a4a6
push eax
call fcn.004159ac
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.00411abb
mov esp, ebp
pop ebp
ret 8