Function at 0x1005a910
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c81e1
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x1022b584]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x68c], edi
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x1005a959
xor eax, eax
jmp 0x1005abd6
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.1018d4b0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1018d4b0
add esp, 0x18
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1005abf2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x684], esi
push str..
lea eax, [ebp - 0x688]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.1001b0d0
push 0x250
lea eax, [ebp - 0x678]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.1018d4b0
add esp, 0x18
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 0x688]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ecx, 0xffffffff
mov dword [ebp - 0x680], eax
cmp eax, ecx
je 0x1005ab85
mov edi, eax
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.101971ec
lea ecx, [ebp - 0x21c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005aa24
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x684]
call fcn.1000f6e0
mov esi, dword [ebp - 0x684]
mov ecx, 0x101d9060
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005aa79
test dx, dx
je 0x1005aa75
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005aa79
add eax, 4
add ecx, 4
test dx, dx
jne 0x1005aa53
xor eax, eax
jmp 0x1005aa7e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005ab65
mov eax, 0x101d9064
mov ecx, esi
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1005aab6
test dx, dx
je 0x1005aab2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1005aab6
add ecx, 4
add eax, 4
test dx, dx
jne 0x1005aa90
xor eax, eax
jmp 0x1005aabb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005ab65
test byte [ebp - 0x678], 0x12
jne 0x1005ab65
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x68c]
push dword [eax]
lea eax, [ebp - 0x428]
push 0x101d28b4
push eax
call fcn.1005b390
add esp, 0x10
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x67c]
push eax
call fcn.10010980
mov edi, dword [ebx + 4]
mov byte [ebp - 4], 2
cmp dword [ebx + 8], edi
je 0x1005ab2e
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
push eax
call fcn.100121a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [ebx + 4], 4
jmp 0x1005ab3d
lea eax, [ebp - 0x67c]
mov ecx, ebx
push eax
push edi
call fcn.10018b90
mov edx, dword [ebp - 0x67c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005ab5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x680]
lea eax, [ebp - 0x678]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1005aa00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or ecx, 0xffffffff
mov eax, dword [ebx + 4]
xor edx, edx
sub eax, dword [ebx]
sar eax, 2
cmp edx, eax
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x688]
mov eax, ecx
sbb edi, edi
add edx, 0xfffffff0
neg edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005abb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1005abd4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.101799ce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
int3