Function at 0x418050
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fd4d
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], ecx
mov eax, dword [0x4d138c]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x274], ebx
test eax, eax
jne 0x4180b9
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d138c], eax
test eax, eax
je 0x4180c8
lea ecx, [ebp - 0x288]
push ecx
call eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 4], 0
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x4180ea
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00417dc0
test esi, esi
jne 0x41810b
xor ecx, ecx
jmp 0x41811f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418110
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.004046a0
mov edi, dword [ebp - 0x268]
or ebx, 0xffffffff
cmp dword [edi - 0xc], 0
jne 0x418142
xor esi, esi
jmp 0x4183bf
push 0x5c
lea ecx, [ebp - 0x268]
call fcn.00425880
push 2
push 0x4a63d0
lea ecx, [ebp - 0x268]
call fcn.00403730
mov edi, dword [ebp - 0x268]
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x4183b1
mov esi, eax
nop word [eax + eax]
mov ecx, 0x4a63d8
lea eax, [ebp - 0x238]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4181c6
test dx, dx
je 0x4181c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4181c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4181a0
xor eax, eax
jmp 0x4181cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x418394
mov eax, 0x4a63dc
lea ecx, [ebp - 0x238]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x418206
test dx, dx
je 0x418202
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x418206
add ecx, 4
add eax, 4
test dx, dx
jne 0x4181e0
xor eax, eax
jmp 0x41820b
sbb eax, eax
or eax, 1
test eax, eax
je 0x418394
cmp byte [ebp + 0x10], 0
jne 0x418226
test byte [ebp - 0x264], 0x10
je 0x418394
lea ecx, [edi - 0x10]
call fcn.004091c0
add eax, 0x10
mov dword [ebp - 0x26c], eax
push 0x2a
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.00425880
lea ecx, [ebp - 0x238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418251
sub ecx, edx
lea eax, [ebp - 0x238]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x26c]
call fcn.00403730
push 0x40
call fcn.0046c52d
add esp, 4
mov dword [ebp - 0x278], eax
mov ecx, eax
call fcn.00410b30
mov esi, dword [ebp - 0x26c]
lea edx, [ebp - 0x250]
mov ebx, eax
mov ecx, esi
push ebx
push dword [ebp - 0x244]
mov dword [ebp - 0x278], ebx
push dword [ebp - 0x248]
push dword [ebp - 0x264]
call fcn.00418710
mov ecx, dword [ebx]
add esp, 0x10
call fcn.00410a60
test al, al
je 0x41835e
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax + 0xae0]
test byte [eax + 0x44], 1
je 0x41835e
push 0
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
call fcn.00410c60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
mov edx, dword [eax]
call fcn.00410830
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 4
push eax
call fcn.0040a720
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418330
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418352
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx + 0x14], eax
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x278]
push eax
call fcn.0041c580
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41838e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418190
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x274]
mov esi, dword [eax + 4]
sub esi, dword [eax]
sar esi, 2
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4183d8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
cmp dword [ebp - 0x28c], 0
je 0x41841a
mov eax, dword [0x4d1388]
mov edi, dword [ebp - 0x288]
test eax, eax
jne 0x418417
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1388], eax
test eax, eax
je 0x41841a
push edi
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0xc