Function at 0x41005730
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411473b3
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x411bade8]
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 edi, ecx
push 0x41158aa8
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 1
call fcn.41002090
mov esi, eax
push 0x41158aa4
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.41002090
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x288]
push ecx
mov byte [ebp - 4], 3
call fcn.41005670
push esi
push eax
lea edx, [ebp - 0x284]
push edx
mov byte [ebp - 4], 4
call fcn.41005670
mov eax, dword [eax]
sub eax, 0x10
push eax
mov byte [ebp - 4], 5
call fcn.41003530
lea esi, [eax + 0x10]
add esp, 0x1c
mov dword [ebp - 0x280], esi
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410057f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100581b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005867
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x41005894
lea edx, [ebp + 0xc]
push edx
lea ecx, [edi + 0x7c]
call fcn.41041dac
lea eax, [esi - 0x10]
jmp 0x410059fe
mov bl, 0xd
jmp 0x410058a0
test byte [ebp - 0x260], 0x10
jne 0x410059a2
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x278]
call fcn.41002090
mov esi, eax
push 0x41158aa4
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0xb
call fcn.41002090
push eax
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 0xc
call fcn.41005670
push esi
push eax
lea ecx, [ebp - 0x268]
push ecx
mov byte [ebp - 4], bl
call fcn.41005670
add esp, 0x18
push eax
lea ecx, [edi + 0x7c]
mov byte [ebp - 4], 0xe
call fcn.41041dac
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41005930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100597c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410059a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410058a0
mov ecx, edi
call fcn.41005070
cmp eax, 0x12
je 0x410059e8
mov eax, dword [ebp + 0xc]
push 0
push eax
lea ecx, [edi + 0x7c]
call fcn.41041bdc
test eax, eax
jne 0x410059e8
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [edi + 0x7c]
call fcn.41041dac
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005a1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005a60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.4112e1a6
mov esp, ebp
pop ebp
ret 8