Function at 0x100394f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101811e2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x348
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x348], edi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], eax
mov byte [ebp - 4], 1
push 8
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], eax
call fcn.1014d1eb
lea ecx, [ebp - 0x328]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x328], eax
mov dword [eax], ecx
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov dword [edi], eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 0x10
movlpd qword [ebp - 0x330], xmm0
jb 0x100395d5
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.100e5620
add esp, 4
test al, al
jne 0x10039616
call fcn.10002de0
push str.Failed_to_convert_multibyte_path_to_wide_char
push 0x101a55a8
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1018a4d4]
call esi
add esp, 0xc
mov byte [ebp - 0x311], 0
jmp 0x10039b05
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10039666
call fcn.10002de0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov esi, dword [eax]
push ecx
push str.Path:_s_is_not_a_directory
push 0x101a53f8
mov esi, dword [esi + 0x54]
mov ecx, esi
push eax
call dword [0x1018a4d4]
call esi
add esp, 0x10
mov byte [ebp - 0x311], 0
jmp 0x10039b05
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10004390
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x320]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x100396a2
push 1
lea ecx, [ebp - 0x328]
call fcn.1003e0a0
mov edx, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x320]
mov eax, dword [ebp - 0x31c]
dec ecx
and eax, ecx
mov dword [ebp - 0x31c], eax
add eax, edx
and ecx, eax
lea esi, [ecx*4]
mov ecx, dword [ebp - 0x324]
cmp dword [ecx + esi], 0
jne 0x100396e1
push 0x18
call fcn.1014d1eb
mov ecx, dword [ebp - 0x324]
add esp, 4
mov dword [ecx + esi], eax
mov ecx, dword [ebp - 0x324]
mov ecx, dword [ecx + esi]
lea eax, [ebp - 0x5c]
push eax
call fcn.10004390
mov ecx, dword [ebp - 0x318]
mov esi, 0
mov edi, dword [ebp - 0x32c]
add ecx, 1
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x340], esi
je 0x10039aeb
lea edx, [ebp - 0x328]
mov dword [ebp - 0x334], edi
mov dword [ebp - 0x338], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x31c]
add eax, ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x32c], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x5c]
cmp ecx, eax
je 0x10039768
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x1003975c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10001c20
push 0x101a4ae8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.10019410
add esp, 0xc
push 1
push 0x101bb9d0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10001d30
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x358], xmm0
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x330], xmm0
movq qword [ebp - 0x7c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.10001bc0
movups xmm0, xmmword [ebp - 0x358]
xor eax, eax
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 7
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x8c], ax
movq xmm0, qword [ebp - 0x330]
movq qword [ebp - 0x34], xmm0
call fcn.10001bc0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.10001bc0
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x318]
dec eax
mov edx, dword [ebp - 0x320]
add ecx, eax
mov eax, dword [ebp - 0x324]
dec edx
and edx, ecx
mov ecx, dword [eax + edx*4]
call fcn.10001bc0
sub dword [ebp - 0x318], 1
mov ecx, 0
mov eax, dword [ebp - 0x31c]
cmove eax, ecx
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x31c], eax
lea ecx, [ebp - 0x310]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x32c], eax
cmp eax, 0xffffffff
je 0x10039b55
mov edx, 0x101bb564
lea ecx, [ebp - 0x2e4]
nop dword [eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x100398b6
test ax, ax
je 0x100398b2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x100398b6
add ecx, 4
add edx, 4
test ax, ax
jne 0x10039890
xor eax, eax
jmp 0x100398bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10039a9b
mov eax, 0x101bb568
lea ecx, [ebp - 0x2e4]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100398f6
test dx, dx
je 0x100398f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100398f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x100398d0
xor eax, eax
jmp 0x100398fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10039a9b
test byte [ebp - 0x310], 0x10
lea eax, [ebp - 0x5c]
push 0x101a4ae8
push eax
lea eax, [ebp - 0xa4]
push eax
je 0x100399ba
call fcn.10019410
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 6
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039937
sub ecx, edi
lea eax, [ebp - 0x2e4]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10001d30
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xbc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x328]
call fcn.1003de80
lea ecx, [ebp - 0xbc]
call fcn.10001bc0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.10001bc0
mov edi, dword [ebp - 0x334]
jmp 0x10039a9b
call fcn.10019410
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 8
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100399d1
sub ecx, edi
lea eax, [ebp - 0x2e4]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10001d30
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
movups xmmword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
movq qword [ebp - 0x64], xmm1
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
cmp esi, dword [ebp - 0x33c]
je 0x10039a48
mov dword [esi + 0x10], ecx
xor eax, eax
mov dword [esi + 0x14], ecx
movups xmmword [esi], xmm0
mov dword [ebp - 0x64], ecx
movq qword [esi + 0x10], xmm1
add esi, 0x18
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 0x340], esi
jmp 0x10039a5e
lea eax, [ebp - 0x74]
push eax
push esi
lea ecx, [ebp - 0x344]
call fcn.10019670
mov esi, dword [ebp - 0x340]
lea ecx, [ebp - 0x74]
call fcn.10001bc0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.10001bc0
mov ecx, dword [ebp - 0x2f4]
xor eax, eax
mov edi, dword [ebp - 0x334]
neg ecx
add ecx, dword [ebp - 0x2f0]
adc eax, eax
add dword [ebp - 0x338], ecx
adc edi, eax
mov dword [ebp - 0x334], edi
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10039882
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x32c]
cmp eax, 0x12
jne 0x10039b4f
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x318]
lea edx, [ebp - 0x328]
test ecx, ecx
jne 0x10039730
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0x348]
mov byte [ebp - 0x311], 1
mov dword [ecx], eax
mov dword [ecx + 4], edi
lea ecx, [ebp - 0x5c]
call fcn.10001bc0
lea ecx, [ebp - 0x44]
call fcn.10001bc0
lea ecx, [ebp - 0x328]
call fcn.1003df20
lea ecx, [ebp - 0x344]
call fcn.1000a6f0
lea ecx, [ebp - 0x2c]
call fcn.10001bc0
mov al, byte [ebp - 0x311]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x311], 0
jmp 0x10039afd