Function at 0x41b661
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55e13f
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push 0x24c
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4c]
push ebx
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], 0x80004005
mov dword [esp + 0x50], ebx
call fcn.005278d0
add esp, 0xc
lea ecx, [esp + 0x20]
push esi
call fcn.0041cb95
mov dword [esp + 0x2a8], ebx
call fcn.0040adc1
push eax
lea ecx, [esp + 0x40]
call fcn.0040a3a4
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x2ac], 1
push eax
lea ecx, [esp + 0x28]
call fcn.0041be66
mov esi, 0x581774
mov byte [esp + 0x2a8], 2
push esi
mov ecx, eax
call fcn.0041c090
mov byte [esp + 0x2a8], 1
test eax, eax
mov ecx, dword [esp + 0x14]
setne bl
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
test bl, bl
je 0x41b74f
push esi
call fcn.0041cdf6
pop ecx
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.0041cc19
push 0x58b9b8
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.0041beb9
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x2ac], 3
call fcn.0041c0b0
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
xor ebx, ebx
mov esi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x2a8], 4
test edi, edi
je 0x41b8ab
call fcn.0040adc1
push eax
lea ecx, [esp + 0x20]
call fcn.0040a3a4
push edi
mov byte [esp + 0x2ac], 5
call fcn.0041cdf6
pop ecx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.0041cd7d
call fcn.0040adc1
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a3a4
lea eax, [esp + 0x14]
mov byte [esp + 0x2a8], 6
push eax
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0041c8a4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2ac], 7
call fcn.0041c0b0
mov byte [esp + 0x2a8], 6
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
mov edi, 0x581738
lea ecx, [esp + 0x18]
push edi
call fcn.0041c090
test eax, eax
je 0x41b88b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041bfbd
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.0041c8a4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2ac], 8
call fcn.0041c0b0
mov byte [esp + 0x2a8], 6
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
push edi
lea ecx, [esp + 0x1c]
call fcn.0041c090
test eax, eax
jne 0x41b831
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
mov byte [esp + 0x2a8], 4
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x41ba54
mov edx, 0x58b9c0
lea ecx, [esp + 0x70]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x41b8f9
test ax, ax
je 0x41b8f5
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x41b8f9
add ecx, 4
add edx, 4
test ax, ax
jne 0x41b8d3
xor eax, eax
jmp 0x41b8fe
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ba30
mov ecx, 0x58b9c4
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b935
test dx, dx
je 0x41b931
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b935
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b90f
xor eax, eax
jmp 0x41b93a
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ba30
cmp word [esp + 0x70], 0x2e
je 0x41ba30
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], eax
je 0x41b9a2
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.0041c6b9
pop ecx
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x70]
mov byte [esp + 0x2a8], 9
push eax
lea ecx, [esp + 0x28]
call fcn.0041cbf5
mov byte [esp + 0x2a8], 4
lea ecx, [edi - 0x10]
test eax, eax
je 0x41b9ed
call fcn.0040b4b1
add esi, 4
cmp esi, dword [esp + 0x2c]
jne 0x41b958
mov edi, dword [esp + 0x14]
test byte [esp + 0x44], 2
jne 0x41ba30
test byte [esp + 0x44], 0x10
lea eax, [esp + 0x70]
lea edx, [esp + 0x20]
push eax
je 0x41b9f8
lea ecx, [esp + 0x20]
call fcn.0041beb9
pop ecx
mov edx, dword [esp + 0x34]
push dword [esp + 0x40]
mov byte [esp + 0x2ac], 0xa
push dword [eax]
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov byte [esp + 0x2a8], 4
mov ecx, dword [esp + 0x1c]
jmp 0x41ba22
call fcn.0040b4b1
mov edi, dword [esp + 0x14]
jmp 0x41ba30
lea ecx, [esp + 0x1c]
call fcn.0041beb9
pop ecx
mov edx, dword [esp + 0x34]
mov byte [esp + 0x2a8], 0xb
push dword [eax]
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov byte [esp + 0x2a8], 4
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
mov esi, eax
call fcn.0040b4b1
test esi, esi
jne 0x41ba54
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x41b8ca
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [esp + 0x38], 0
lea ecx, [esp + 0x28]
call fcn.0041c1af
lea ecx, [ebx - 0x10]
call fcn.0040b4b1
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040b4b1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 0xc