Function at 0x1001e250
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004fa39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
push ebx
push esi
push edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.100018e0
mov dword [esp + 0x35c], 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x1001e2c0
push 2
push 0x10059df4
lea ecx, [esp + 0x1c]
call fcn.10001a10
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
lea edi, [esp + 0x14]
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmp ebx, 0x10
cmovae edi, edx
add edi, ecx
cmp ebx, 0x10
cmovae esi, edx
add esi, ecx
cmp ebx, 0x10
lea ecx, [esp + 0x14]
mov eax, esi
cmovae ecx, edx
sub eax, ecx
push eax
push 0x2e
push ecx
call dword [sym.imp.MSVCR120.dll_memchr]
add esp, 0xc
test eax, eax
cmovne esi, eax
cmp esi, edi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x1001e372
lea eax, [esp + 0x14]
mov edx, 0x10053974
push eax
lea ecx, [esp + 0x90]
call fcn.10008730
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
cmp eax, edi
je 0x1001e35c
cmp dword [esp + 0x28], 0x10
jb 0x1001e33d
push dword [esp + 0x14]
call esi
add esp, 4
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10001880
cmp dword [esp + 0xa0], 0x10
jb 0x1001e372
push dword [esp + 0x8c]
call esi
add esp, 4
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push 1
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x1c], 0x5c
call fcn.10004140
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov byte [esp + 0x35c], 1
mov ecx, dword [edi + 0x10]
dec ecx
cmp eax, ecx
je 0x1001e3c4
push 1
push 0x10059c78
lea ecx, [esp + 0x7c]
call fcn.10001f40
push 1
push 0x10059c7c
lea ecx, [esp + 0x7c]
call fcn.10001f40
lea eax, [esp + 0x74]
mov edx, edi
push eax
lea ecx, [esp + 0x30]
call fcn.10004ac0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x35c], 2
push ecx
mov edx, eax
lea ecx, [esp + 0xa8]
call fcn.100075a0
add esp, 4
mov byte [esp + 0x35c], 4
cmp dword [esp + 0x40], 0x10
jb 0x1001e41d
push dword [esp + 0x2c]
call esi
add esp, 4
mov eax, dword [0x1006e3e8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp eax, 0xffffffff
jne 0x1001e47b
lea eax, [esp + 0xd4]
push eax
push 0xd698
call ebx
test eax, eax
jne 0x1001e471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001e471
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001e47b
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
lea edx, [esp + 0xa8]
lea ecx, [esp + 0x48]
call fcn.10008690
add esp, 4
mov edx, eax
mov byte [esp + 0x35c], 5
cmp dword [edx + 0x14], 8
jb 0x1001e4a1
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
cmp word [edx], ax
jne 0x1001e4c1
xor ecx, ecx
jmp 0x1001e4db
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e4c6
sub ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCPInfo]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x64]
call fcn.100026d0
mov byte [esp + 0x35c], 7
cmp dword [esp + 0x58], 8
jb 0x1001e4fe
push dword [esp + 0x44]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
mov eax, dword [0x1006e3e8]
mov dword [esp + 0x54], 0
cmp eax, 0xffffffff
jne 0x1001e558
lea eax, [esp + 0xd4]
push eax
push 0xd698
call ebx
test eax, eax
jne 0x1001e54e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001e54e
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001e558
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.10008690
add esp, 4
mov byte [esp + 0x35c], 8
cmp dword [eax + 0x14], 8
jb 0x1001e57a
mov eax, dword [eax]
mov edx, eax
lea ecx, [esp + 0xbc]
call fcn.10008490
mov byte [esp + 0x35c], 0xa
cmp dword [esp + 0xa0], 8
jb 0x1001e5a6
push dword [esp + 0x8c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
cmp dword [esp + 0x70], 8
lea ecx, [esp + 0x100]
mov word [esp + 0x8c], ax
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push ecx
push eax
mov dword [esp + 0xa4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001e778
mov edi, edi
cmp dword [ebp + 0x14], 0
mov eax, dword [esp + 0x100]
jne 0x1001e605
test al, 2
jne 0x1001e753
test al, 0x10
jne 0x1001e753
lea eax, [esp + 0x12c]
push eax
lea edx, [esp + 0xc0]
lea ecx, [esp + 0xec]
call fcn.10006020
add esp, 4
mov edi, eax
mov byte [esp + 0x35c], 0xb
mov ecx, dword [0x1006e3e8]
cmp ecx, 0xffffffff
jne 0x1001e67e
lea eax, [esp + 0xd4]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001e673
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001e673
mov dword [0x1006e3e8], 0x3a8
mov ecx, 0x3a8
jmp 0x1001e67e
mov ecx, 0xd698
mov dword [0x1006e3e8], ecx
push ecx
mov edx, edi
lea ecx, [esp + 0x48]
call fcn.10006110
add esp, 4
mov edx, eax
mov byte [esp + 0x35c], 0xc
cmp dword [edx + 0x14], 0x10
jb 0x1001e69f
mov edx, dword [edx]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp byte [edx], 0
jne 0x1001e6bd
xor ecx, ecx
jmp 0x1001e6cb
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e6c2
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.10001a10
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x360], 0xd
call fcn.10003f80
cmp dword [esp + 0x40], 0x10
jb 0x1001e6fb
push dword [esp + 0x2c]
call esi
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x1001e720
push dword [esp + 0x44]
call esi
add esp, 4
mov byte [esp + 0x35c], 0xa
cmp dword [esp + 0xfc], 8
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x1001e753
push dword [esp + 0xe8]
call esi
add esp, 4
lea eax, [esp + 0x100]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001e5f0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 1
jmp 0x1001e77a
xor edi, edi
cmp dword [esp + 0xd0], 8
jb 0x1001e790
push dword [esp + 0xbc]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xd0], 7
cmp dword [esp + 0x70], 8
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
jb 0x1001e7c0
push dword [esp + 0x5c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x1001e7ed
push dword [esp + 0xa4]
call esi
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
jb 0x1001e81e
push dword [esp + 0x74]
call esi
add esp, 4
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x1001e849
push dword [esp + 0x14]
call esi
add esp, 4
mov ecx, dword [esp + 0x354]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret