Function at 0x10150150
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102570b4], 0
push edi
mov edi, ecx
mov dword [ebp - 0x6b4], edi
je 0x101504b8
lea eax, [ebp - 0x6b0]
push esi
push eax
call fcn.101b0cc0
add esp, 4
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov word [ebp - 0x42c], ax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101501b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x42c]
call fcn.100070c0
mov edx, dword [ebp - 0x6b0]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101501ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 6
push str.endata
lea ecx, [ebp - 0x42c]
call fcn.10006d70
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x45c]
call fcn.10005170
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x444]
call fcn.10005170
push 8
push str.h_1.dat
lea ecx, [ebp - 0x45c]
call fcn.10006d70
push 8
push str.h_2.dat
lea ecx, [ebp - 0x444]
call fcn.10006d70
cmp dword [ebp - 0x448], 8
lea eax, [ebp - 0x45c]
jb 0x10150259
mov eax, dword [ebp - 0x45c]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x10150496
cmp dword [ebp - 0x430], 8
lea eax, [ebp - 0x444]
jb 0x1015027f
mov eax, dword [ebp - 0x444]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x10150496
push ebx
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x42c]
lea esi, [ebp - 0x42c]
add esp, 0xc
cmp dword [ebp - 0x418], 8
jb 0x101502be
mov esi, ebx
lea ecx, [ebp - 0x414]
mov edx, 0x104
mov eax, ecx
sub esi, eax
lea ecx, [ecx]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x101502f0
movzx eax, word [esi + ecx]
test ax, ax
je 0x101502f0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x101502d0
jmp 0x101502f4
test edx, edx
jne 0x101502f7
sub ecx, 2
xor eax, eax
cmp dword [edi + 0x1c], eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ecx], ax
lea eax, [ebp - 0x414]
je 0x10150314
push str.awa_.dat
jmp 0x10150319
push str.aw_.dat
push eax
call edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x250
lea eax, [ebp - 0x6ac]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6b0], eax
cmp eax, 0xffffffff
je 0x10150495
cmp dword [ebp - 0x418], 8
lea esi, [ebp - 0x42c]
jb 0x10150379
mov esi, ebx
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
jmp 0x10150390
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x101503b0
movzx eax, word [esi + ecx]
test ax, ax
je 0x101503b0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10150390
jmp 0x101503b4
test edx, edx
jne 0x101503b7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 0x6b4]
lea eax, [ebp - 0x20c]
push eax
call fcn.101504d0
lea eax, [ebp - 0x6ac]
push eax
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10150489
lea esp, [esp]
cmp dword [ebp - 0x418], 8
lea esi, [ebp - 0x42c]
jb 0x10150411
mov esi, ebx
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10150440
movzx eax, word [esi + ecx]
test ax, ax
je 0x10150440
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10150420
jmp 0x10150444
test edx, edx
jne 0x10150447
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 0x6b4]
lea eax, [ebp - 0x20c]
push eax
call fcn.101504d0
lea eax, [ebp - 0x6ac]
push eax
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10150400
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
lea ecx, [ebp - 0x444]
call fcn.10005250
lea ecx, [ebp - 0x45c]
call fcn.10005250
lea ecx, [ebp - 0x42c]
call fcn.10005250
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret