Function at 0x1001e860
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004fa9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 8]
push esi
push edi
push 1
push ecx
push eax
mov ecx, ebx
mov byte [esp + 0x1c], 0x5c
call fcn.10004140
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x344], 0
mov ecx, dword [ebx + 0x10]
dec ecx
cmp eax, ecx
je 0x1001e8d3
push 1
push 0x10059c78
lea ecx, [esp + 0x34]
call fcn.10001f40
push 3
push 0x10059de8
lea ecx, [esp + 0x34]
call fcn.10001f40
lea eax, [esp + 0x2c]
mov edx, ebx
push eax
lea ecx, [esp + 0x48]
call fcn.10004ac0
add esp, 4
mov byte [esp + 0x344], 1
mov eax, dword [0x1006e3e8]
mov esi, dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp eax, 0xffffffff
jne 0x1001e947
lea eax, [esp + 0xd4]
push eax
push 0xd698
call esi
test eax, eax
jne 0x1001e93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001e93d
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001e947
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
lea edx, [esp + 0x48]
lea ecx, [esp + 0x60]
call fcn.10008690
add esp, 4
mov edx, eax
mov byte [esp + 0x344], 2
cmp dword [edx + 0x14], 8
jb 0x1001e96a
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [edx], ax
jne 0x1001e98a
xor ecx, ecx
jmp 0x1001e9a5
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e990
sub ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCPInfo]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.100026d0
mov byte [esp + 0x344], 4
cmp dword [esp + 0x70], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1001e9ce
push dword [esp + 0x5c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0xe8]
mov word [esp + 0x5c], ax
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001ec4d
lea ecx, [ecx]
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0xe8]
jne 0x1001ea25
test al, 2
jne 0x1001ec22
test al, 0x10
je 0x1001ec22
mov ecx, 0x100539d0
lea eax, [esp + 0x114]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001ea66
test dx, dx
je 0x1001ea62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001ea66
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001ea40
xor eax, eax
jmp 0x1001ea6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001ec22
mov eax, 0x10059dec
lea ecx, [esp + 0x114]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1001eaa6
test dx, dx
je 0x1001eaa2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1001eaa6
add ecx, 4
add eax, 4
test dx, dx
jne 0x1001ea80
xor eax, eax
jmp 0x1001eaab
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001ec22
mov eax, dword [0x1006e3e8]
cmp eax, 0xffffffff
jne 0x1001eaf6
lea eax, [esp + 0xd4]
push eax
push 0xd698
call esi
test eax, eax
jne 0x1001eaec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001eaec
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001eaf6
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
lea edx, [esp + 0x118]
lea ecx, [esp + 0xc0]
call fcn.100047c0
mov esi, eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x90]
push 0x10059c78
mov byte [esp + 0x34c], 5
call fcn.100074c0
push esi
mov edx, eax
mov byte [esp + 0x350], 6
lea ecx, [esp + 0x80]
call fcn.10008700
push 0x10059c78
mov edx, eax
mov byte [esp + 0x354], 7
lea ecx, [esp + 0xb4]
call fcn.10004d50
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [esp + 0x348], 8
call fcn.10003f80
cmp dword [esp + 0xb8], 0x10
jb 0x1001eb84
push dword [esp + 0xa4]
call edi
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
jb 0x1001ebb5
push dword [esp + 0x74]
call edi
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x1001ebe6
push dword [esp + 0x8c]
call edi
add esp, 4
mov byte [esp + 0x344], 4
cmp dword [esp + 0xd0], 0x10
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
jb 0x1001ec22
push dword [esp + 0xbc]
call edi
add esp, 4
lea eax, [esp + 0xe8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001ea10
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x1001ec4f
xor esi, esi
cmp dword [esp + 0x28], 8
jb 0x1001ec5f
push dword [esp + 0x14]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jb 0x1001ec86
push dword [esp + 0x44]
call edi
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x1001ecab
push dword [esp + 0x2c]
call edi
add esp, 4
mov ecx, dword [esp + 0x33c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret