Function at 0x461640
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e382
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4914f4]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], 0
cmp dword [eax + 0xc], esi
jbe 0x4616a0
call fcn.00447ea0
mov eax, dword [ebp - 0x280]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax]
cmp edi, dword [eax + 0x10]
jbe 0x4616b5
call fcn.00447ea0
mov ecx, dword [ebp - 0x280]
mov eax, dword [ecx]
push esi
push ebx
push edi
push eax
lea edx, [ebp - 0x298]
push edx
call fcn.0040cb20
push 4
call fcn.0042313e
add esp, 4
test eax, eax
je 0x4616e5
lea ecx, [ebp - 0x27c]
mov dword [eax], ecx
jmp 0x4616e7
xor eax, eax
mov dword [ebp - 0x27c], eax
xor edi, edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], edi
mov esi, dword [ebp - 0x28c]
push 0x480050
mov ebx, 1
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x461725
mov dword [ebp - 0x284], ebx
lea edx, [ebp - 0x27c]
push edx
push 0x480070
push esi
call fcn.004610d0
add esp, 0xc
cmp dword [ebp - 0x284], edi
je 0x461794
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
mov ebx, ecx
cmp eax, ecx
jbe 0x461765
call fcn.00447ea0
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
mov esi, dword [ebp - 0x27c]
mov edi, eax
cmp eax, ecx
jbe 0x461776
call fcn.00447ea0
mov eax, dword [ebp - 0x27c]
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.0040cb20
xor edi, edi
call fcn.0042fa4e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4617ae
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 2
cmp edx, edi
jne 0x4617d2
xor eax, eax
jmp 0x4617e6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4617d7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x264]
call fcn.00403340
mov edx, dword [ebp - 0x264]
mov eax, dword [edx - 0xc]
cmp eax, 2
jge 0x46186b
lea eax, [edx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x270]
cmp eax, edi
je 0x461854
mov ecx, dword [ebp - 0x26c]
push ecx
push eax
lea ecx, [ebp - 0x27c]
call fcn.0040ca30
mov edx, dword [ebp - 0x270]
push edx
call fcn.00423178
add esp, 4
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], edi
jmp 0x461c23
cmp eax, 3
je 0x461892
lea ecx, [eax - 1]
cmp ecx, edi
jl 0x4618ef
cmp ecx, eax
jg 0x4618ef
cmp word [edx + ecx*2], 0x5c
je 0x461892
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
push 1
push 0x480050
lea ecx, [ebp - 0x264]
call fcn.00403340
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
jne 0x4618f9
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4618e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 4
jmp 0x461828
push 0x80070057
call fcn.00401350
test byte [ebp - 0x260], 0x10
jne 0x461a0a
lea ecx, [ebp - 0x234]
push 0x2e
push ecx
call fcn.004466f5
add esp, 8
test eax, eax
je 0x461a0a
push eax
call fcn.004469a4
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x26c]
add esp, 4
mov ebx, eax
cmp esi, eax
jbe 0x46195a
call fcn.00447ea0
mov eax, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x270]
cmp esi, eax
jbe 0x46195a
call fcn.00447ea0
mov edi, dword [ebp - 0x27c]
lea edx, [ebp - 0x294]
push edx
push ebx
push esi
mov dword [ebp - 0x29c], esi
call fcn.0045c2d0
mov esi, eax
mov eax, dword [ebp - 0x26c]
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x270], eax
jbe 0x46198e
call fcn.00447ea0
test edi, edi
je 0x46199a
cmp edi, dword [ebp - 0x27c]
je 0x46199f
call fcn.00447ea0
cmp esi, ebx
jne 0x4619ac
cmp dword [ebp - 0x284], 0
je 0x461a0a
mov eax, dword [ebp - 0x288]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405850
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004469a4
add esp, 4
push eax
lea ecx, [ebp - 0x264]
call fcn.004058c0
cmp dword [ebp - 0x240], 0
ja 0x4619f8
cmp dword [ebp + 0x14], 0
jne 0x461a0a
mov ecx, dword [ebp - 0x280]
lea edx, [ebp - 0x264]
push edx
call fcn.0040d980
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x461ba9
jmp 0x461a30
test byte [ebp - 0x260], 0x10
jne 0x461b8d
lea edx, [ebp - 0x234]
push 0x2e
push edx
call fcn.004466f5
add esp, 8
test eax, eax
je 0x461b8d
push eax
call fcn.004469a4
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x26c]
add esp, 4
mov ebx, eax
cmp esi, eax
jbe 0x461a91
call fcn.00447ea0
mov eax, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x270]
cmp esi, eax
jbe 0x461a91
call fcn.00447ea0
mov edi, dword [ebp - 0x27c]
lea eax, [ebp - 0x294]
push eax
push ebx
push esi
mov dword [ebp - 0x29c], esi
call fcn.0045c2d0
mov esi, eax
mov eax, dword [ebp - 0x26c]
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x270], eax
jbe 0x461ac5
call fcn.00447ea0
test edi, edi
je 0x461ad1
cmp edi, dword [ebp - 0x27c]
je 0x461ad6
call fcn.00447ea0
cmp esi, ebx
jne 0x461ae7
cmp dword [ebp - 0x284], 0
je 0x461b8d
mov esi, dword [ebp - 0x288]
test esi, esi
jne 0x461af5
xor eax, eax
jmp 0x461b0f
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461b00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x264]
call fcn.00403400
push 1
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.00403340
lea ecx, [ebp - 0x234]
push ecx
call fcn.004469a4
add esp, 4
test eax, eax
jne 0x461b45
xor ecx, ecx
jmp 0x461b5f
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x461b50
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00403340
cmp dword [ebp - 0x240], 0
ja 0x461b7b
cmp dword [ebp + 0x14], 0
jne 0x461b8d
mov ecx, dword [ebp - 0x280]
lea edx, [ebp - 0x264]
push edx
call fcn.0040d980
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x461a30
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461bdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
xor esi, esi
mov dword [ebp - 4], 5
cmp eax, esi
je 0x461c11
mov ecx, dword [ebp - 0x26c]
push ecx
push eax
lea ecx, [ebp - 0x27c]
call fcn.0040ca30
mov edx, dword [ebp - 0x270]
push edx
call fcn.00423178
add esp, 4
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
mov eax, dword [ebp - 0x27c]
push eax
call fcn.00423178
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.0044665f
mov esp, ebp
pop ebp
ret