Function at 0x10013050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], edi
je 0x10013091
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10013080
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [edi + edi + 0x212]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x264], esi
je 0x10013290
cmp edi, 0xff
mov dword [ebp - 0x258], esi
jb 0x1001310c
mov ecx, ebx
sub ecx, 0x10077348
xor eax, eax
mov dx, word [ecx + eax + 0x10077348]
cmp dx, word [eax + 0x10077348]
jne 0x100130eb
add eax, 2
cmp eax, 8
jb 0x100130d0
jmp 0x1001310c
mov eax, 0x10077348
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100130f4
add esi, 8
mov dword [ebp - 0x258], esi
mov eax, dword [ebp - 0x258]
lea esi, [edi + edi]
push esi
push ebx
push eax
call fcn.10042570
mov ebx, dword [ebp - 0x258]
add esp, 0xc
test edi, edi
je 0x10013132
cmp word [esi + ebx - 2], 0x5c
je 0x1001313b
mov word [esi + ebx], 0x5c
add edi, 1
lea esi, [ebx + edi*2]
mov eax, 0x10071268
mov edx, esi
sub edx, eax
jmp 0x10013150
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10013150
push 0x24c
lea ecx, [ebp - 0x250]
push 0
push ecx
mov dword [ebp - 0x254], 0
call fcn.10042010
mov eax, dword [ebp - 0x264]
add esp, 0xc
lea edx, [ebp - 0x254]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x1001327a
lea ecx, [ebp - 0x228]
sub esi, ecx
lea ebx, [ebx]
lea eax, [ebp - 0x228]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x100131b6
mov eax, dword [ebp - 0x254]
test eax, 0x10400
jne 0x1001323e
test al, 0x10
je 0x1001321e
cmp word [ebp - 0x228], 0x2e
jne 0x100131f2
mov ax, word [ebp - 0x226]
test ax, ax
je 0x1001323e
cmp ax, 0x2e
je 0x1001323e
mov edi, dword [ebp - 0x260]
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x254]
push eax
push ebx
mov ecx, edi
call edx
test al, al
je 0x10013244
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
mov ecx, edi
call edx
add dword [ebp - 0x25c], eax
jmp 0x10013244
mov ecx, dword [ebp - 0x260]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x254]
push edx
push ebx
call eax
test al, al
je 0x1001323e
add dword [ebp - 0x25c], 1
mov edi, dword [ebp - 0x260]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
test al, al
jne 0x1001326d
mov edx, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100131b0
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x264]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x25c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ffa
mov esp, ebp
pop ebp
ret 4