Function at 0x466350
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476d40
push eax
mov eax, dword [ebp + 0x10]
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push esi
mov esi, dword [eax + 0x10]
push edi
cmp dword [eax + 0xc], esi
jbe 0x466384
call fcn.0044e19c
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax]
cmp edi, dword [eax + 0x10]
jbe 0x466396
call fcn.0044e19c
mov eax, dword [ebp + 0x10]
push esi
push ebx
push edi
push dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0040f110
push 4
call fcn.00429324
add esp, 4
test eax, eax
je 0x4663bb
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
jmp 0x4663bd
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 0xc]
push 0x48ceb4
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 1
mov ebx, 0
cmove ebx, ecx
push 0x48ceec
push esi
mov dword [ebp - 0x38], ebx
call fcn.00469c70
add esp, 0xc
test ebx, ebx
je 0x46644b
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edi, eax
cmp esi, eax
jbe 0x46642a
call fcn.0044e19c
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov ebx, ecx
cmp esi, eax
jbe 0x46643b
call fcn.0044e19c
mov ecx, dword [ebp - 0x28]
push edi
push ebx
push esi
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f110
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x466467
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x466483
xor ecx, ecx
jmp 0x46649f
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x466490
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466490
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402570
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
cmp ecx, 2
jl 0x46676e
cmp ecx, 3
je 0x4664e4
lea edx, [ecx - 1]
test edx, edx
js 0x4665dd
cmp edx, ecx
jg 0x4665dd
cmp word [eax + edx*2], 0x5c
je 0x4664e4
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402280
push 1
push 0x48ceb4
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x46676e
test byte [ebp - 0x294], 0x10
jne 0x466608
lea eax, [ebp - 0x268]
push 0x2e
push eax
call fcn.0044ede1
add esp, 8
test eax, eax
je 0x466608
push eax
call fcn.0044d217
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
add esp, 4
mov ebx, eax
cmp esi, eax
jbe 0x466563
call fcn.0044e19c
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp esi, eax
jbe 0x466563
call fcn.0044e19c
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push ebx
push esi
mov dword [ebp - 0x40], esi
call fcn.00464900
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x1c], esi
jbe 0x466586
call fcn.0044e19c
test edi, edi
je 0x46658f
cmp edi, dword [ebp - 0x28]
je 0x466594
call fcn.0044e19c
cmp ebx, esi
jne 0x46659e
cmp dword [ebp - 0x38], 0
je 0x466605
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401f00
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402280
lea eax, [ebp - 0x268]
push eax
call fcn.0044d217
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00402280
cmp dword [ebp + 0x18], 0
jne 0x4665e7
cmp dword [ebp - 0x274], 0
jmp 0x4665f1
push 0x80070057
call fcn.00402670
cmp dword [ebp - 0x274], 0x1770
ja 0x4665f9
cmp dword [ebp + 0x14], 0
jne 0x466605
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.0040b660
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x466765
mov edi, edi
test byte [ebp - 0x294], 0x10
jne 0x46674d
lea eax, [ebp - 0x268]
push 0x2e
push eax
call fcn.0044ede1
add esp, 8
test eax, eax
je 0x46674d
push eax
call fcn.0044d217
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
add esp, 4
mov ebx, eax
cmp esi, eax
jbe 0x466672
call fcn.0044e19c
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp esi, eax
jbe 0x466672
call fcn.0044e19c
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push ebx
push esi
mov dword [ebp - 0x40], esi
call fcn.00464900
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x1c], esi
jbe 0x466695
call fcn.0044e19c
test edi, edi
je 0x46669e
cmp edi, dword [ebp - 0x28]
je 0x4666a3
call fcn.0044e19c
cmp ebx, esi
jne 0x4666b1
cmp dword [ebp - 0x38], 0
je 0x46674d
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4666bc
xor ecx, ecx
jmp 0x4666d0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4666c1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00408f60
push 1
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x268]
push eax
call fcn.0044d217
mov edx, eax
add esp, 4
test edx, edx
jne 0x466702
xor ecx, ecx
jmp 0x466716
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466707
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402570
cmp dword [ebp + 0x18], 0
jne 0x46672f
cmp dword [ebp - 0x274], 0
jmp 0x466739
cmp dword [ebp - 0x274], 0x1770
ja 0x466741
cmp dword [ebp + 0x14], 0
jne 0x46674d
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.0040b660
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x466620
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46678f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 3
test eax, eax
je 0x4667b4
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a800
push dword [ebp - 0x1c]
call fcn.00429353
add esp, 4
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00429353
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret