Function at 0x1010bed0
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 0x1010c238
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 0x1010bf30
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 0x1010bf6a
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 0x1010bfd9
mov eax, dword [ebp - 0x45c]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1010c216
cmp dword [ebp - 0x430], 8
lea eax, [ebp - 0x444]
jb 0x1010bfff
mov eax, dword [ebp - 0x444]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1010c216
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 0x1010c03e
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 0x1010c070
movzx eax, word [esi + ecx]
test ax, ax
je 0x1010c070
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1010c050
jmp 0x1010c074
test edx, edx
jne 0x1010c077
sub ecx, 2
xor eax, eax
cmp dword [edi + 0x84], eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ecx], ax
lea eax, [ebp - 0x414]
je 0x1010c097
push str.awa_.dat
jmp 0x1010c09c
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 0x1010c215
cmp dword [ebp - 0x418], 8
lea esi, [ebp - 0x42c]
jb 0x1010c0fc
mov esi, ebx
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
jmp 0x1010c110
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1010c130
movzx eax, word [esi + ecx]
test ax, ax
je 0x1010c130
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1010c110
jmp 0x1010c134
test edx, edx
jne 0x1010c137
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.1010c250
lea eax, [ebp - 0x6ac]
push eax
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1010c209
lea esp, [esp]
cmp dword [ebp - 0x418], 8
lea esi, [ebp - 0x42c]
jb 0x1010c191
mov esi, ebx
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1010c1c0
movzx eax, word [esi + ecx]
test ax, ax
je 0x1010c1c0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1010c1a0
jmp 0x1010c1c4
test edx, edx
jne 0x1010c1c7
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.1010c250
lea eax, [ebp - 0x6ac]
push eax
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1010c180
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