Function at 0x41eea0
Capabilities:
Enumerate files on windows
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov al, byte [esi]
test al, al
jne 0x41f13e
cmp dword [esi + 0x2a0], 0
je 0x41f3e6
test al, al
jne 0x41f13e
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x41ef05
mov edx, dword [edx]
test edx, edx
je 0x41ef05
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x41ef1c
mov eax, dword [eax]
test eax, eax
je 0x41ef1c
mov eax, dword [eax]
test eax, eax
je 0x41ef1c
mov eax, dword [eax]
jmp 0x41ef1e
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp ebx, eax
je 0x41ef40
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407ca0
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x14], 8
jb 0x41ef71
push dword [edi]
call fcn.004a733a
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
dec dword [esi + 0x2a0]
jne 0x41ef92
mov dword [esi + 0x29c], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x44]
xor eax, eax
mov dword [esp + 0x58], 7
push 0xffffffffffffffff
push eax
push ebx
mov word [esp + 0x50], ax
call fcn.00407ca0
cmp dword [esi + 0x288], 0
jne 0x41f042
push 1
xor eax, eax
mov dword [esp + 0x44], 7
push 0x4f0228
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00408730
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x4c]
call fcn.00405dd0
lea ecx, [esp + 0x44]
cmp ecx, eax
je 0x41f00b
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ca0
cmp dword [esp + 0x70], 8
jb 0x41f01e
push dword [esp + 0x5c]
call fcn.004a733a
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0x40], 8
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x41f07c
push dword [esp + 0x2c]
jmp 0x41f074
lea eax, [esi + 0x278]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x4c]
call fcn.00405dd0
lea ecx, [esp + 0x44]
cmp ecx, eax
je 0x41f069
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ca0
cmp dword [esp + 0x70], 8
jb 0x41f07c
push dword [esp + 0x5c]
call fcn.004a733a
add esp, 4
cmp dword [0x4fb1e0], 0
jne 0x41f0e1
push 0x44
call fcn.004a72c4
add esp, 4
test eax, eax
je 0x41f09e
mov ecx, eax
call fcn.004161c0
mov edi, eax
jmp 0x41f0a0
xor edi, edi
mov ecx, edi
xor eax, eax
mov edx, 0x4fb1e0
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41f0e1
test edi, edi
je 0x41f0e1
cmp dword [edi + 0x40], 0x10
jb 0x41f0c6
push dword [edi + 0x2c]
call fcn.004a733a
add esp, 4
mov dword [edi + 0x40], 0xf
mov dword [edi + 0x3c], 0
push edi
mov byte [edi + 0x2c], 0
call fcn.004a733a
add esp, 4
mov eax, dword [0x4fb1e0]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [esp + 0x44]
jl 0x41f10e
cmp dword [esp + 0x58], 8
push 2
cmovae eax, dword [esp + 0x48]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x41f120
cmp dword [esp + 0x58], 8
push ebx
cmovae eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [esp + 0x58], 8
mov dword [esi + 0x254], eax
mov byte [esi], 1
jb 0x41f168
push dword [esp + 0x44]
call fcn.004a733a
add esp, 4
jmp 0x41f168
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f168
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
xor eax, eax
cmp dword [esi + 0x254], 0xffffffff
jne 0x41f21d
mov byte [esi], al
lea edi, [esi + 0x278]
mov dword [esp + 0x84], eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x74]
mov dword [esp + 0x88], 7
cmp edi, eax
je 0x41eec6
cmp dword [edi + 0x14], 8
jb 0x41f1b2
push dword [edi]
call fcn.004a733a
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [esp + 0x88]
cmp ecx, 8
jae 0x41f205
mov eax, dword [esp + 0x84]
inc eax
je 0x41f20b
add eax, eax
push eax
lea eax, [esp + 0x78]
push eax
push edi
call fcn.004a7640
mov ecx, dword [esp + 0x94]
add esp, 0xc
mov eax, dword [esp + 0x84]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x41eec6
mov eax, dword [esp + 0x74]
mov dword [edi], eax
mov eax, dword [esp + 0x84]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x41eec6
lea edi, [esi + 0x30]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [edi], ax
jne 0x41f23e
xor ecx, ecx
jmp 0x41f252
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f243
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x34]
call fcn.00408730
xor eax, eax
mov dword [esp + 0x28], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x1c], ax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0
push eax
call fcn.00407ca0
push 1
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea ecx, [esp + 0x20]
call fcn.00407e90
cmp eax, 0xffffffff
je 0x41f2b0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00406b60
cmp dword [esp + 0x40], 8
jb 0x41f2c3
push dword [esp + 0x2c]
call fcn.004a733a
add esp, 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0041ea30
test al, al
jne 0x41f3ca
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [edi], ax
jne 0x41f2f7
xor ecx, ecx
jmp 0x41f30f
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f300
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x34]
call fcn.00408730
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esi + 0x258]
call fcn.00405dd0
lea ecx, [esp + 0x14]
cmp ecx, eax
je 0x41f341
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ca0
cmp dword [esp + 0x70], 8
jb 0x41f354
push dword [esp + 0x5c]
call fcn.004a733a
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0x40], 8
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x41f37e
push dword [esp + 0x2c]
call fcn.004a733a
add esp, 4
test byte [ebx], 0x10
je 0x41f3c1
cmp byte [esi + 0x270], 0
je 0x41f3b8
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x41f3b8
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x290]
call fcn.0041f470
test byte [esi + 0x274], 2
jmp 0x41f3c8
test byte [esi + 0x274], 1
jne 0x41f416
cmp dword [esp + 0x28], 8
jb 0x41eec6
push dword [esp + 0x14]
call fcn.004a733a
add esp, 4
jmp 0x41eec6
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [esp + 0x1c]
push eax
call fcn.00407ca0
cmp dword [esp + 0x28], 8
jb 0x41f44f
push dword [esp + 0x14]
call fcn.004a733a
add esp, 4
mov ecx, dword [esp + 0x8c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 4