Function at 0x13a58ea4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac4
mov eax, dword [0x13a6e0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xabc], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x450], ax
xor ebx, ebx
lea eax, [ebp - 0x44e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x246]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x656]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
mov eax, dword [0x13a6e004]
mov ebx, 0x13a6e004
cmp eax, ebx
je 0x13a58f46
test dword [eax + 0x1c], 0x200
je 0x13a58f46
cmp byte [eax + 0x19], 4
jb 0x13a58f46
push 0x13a013ec
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a58cc1
test edi, edi
je 0x13a5943b
cmp word [edi], 0
je 0x13a5943b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x13a58f5d
sub eax, edx
sar eax, 1
cmp eax, 0xff
mov dword [ebp - 0xab4], eax
jge 0x13a5943b
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x450]
push eax
call fcn.13a66477
test eax, eax
jge 0x13a58fd5
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a5943b
test dword [ecx + 0x1c], 0x200
je 0x13a5943b
cmp byte [ecx + 0x19], 2
jb 0x13a5943b
push eax
push 0x13a01464
push 0x13a013ec
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.13a58ce7
jmp 0x13a5943b
lea eax, [ebp - 0x450]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x13a58ff1
cmp word [eax + 2], 0
je 0x13a59042
push 0x13a01460
push edi
lea eax, [ebp - 0x450]
push eax
call fcn.13a58deb
test eax, eax
jge 0x13a5903b
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a5943b
test dword [ecx + 0x1c], 0x200
je 0x13a5943b
cmp byte [ecx + 0x19], 2
jb 0x13a5943b
push eax
push 0x13a01444
push 0x13a013ec
push 0xc
jmp 0x13a58fc5
add dword [ebp - 0xab4], 2
lea eax, [ebp - 0x450]
push eax
push edi
lea eax, [ebp - 0x658]
push eax
call fcn.13a66477
test eax, eax
jge 0x13a59091
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a5943b
test dword [ecx + 0x1c], 0x200
je 0x13a5943b
cmp byte [ecx + 0x19], 2
jb 0x13a5943b
push eax
push 0x13a01464
push 0x13a013ec
push 0xd
jmp 0x13a58fc5
lea eax, [ebp - 0x658]
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov dword [ebp - 0xac0], eax
xor eax, eax
push esi
push eax
mov word [ebp - 0x860], ax
lea eax, [ebp - 0x85e]
push eax
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x450]
push eax
push edi
lea eax, [ebp - 0x860]
push eax
call fcn.13a66477
test eax, eax
jge 0x13a5910f
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a5943b
test dword [ecx + 0x1c], 0x200
je 0x13a5943b
cmp byte [ecx + 0x19], 2
jb 0x13a5943b
push eax
push 0x13a01464
push 0x13a013ec
push 0xe
jmp 0x13a58fc5
push 0x13a01438
push edi
lea eax, [ebp - 0x860]
push eax
call fcn.13a58deb
test eax, eax
jge 0x13a5915c
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a5943b
test dword [ecx + 0x1c], 0x200
je 0x13a5943b
cmp byte [ecx + 0x19], 2
jb 0x13a5943b
push eax
push 0x13a01444
push 0x13a013ec
push 0xf
jmp 0x13a58fc5
lea eax, [ebp - 0xab0]
push eax
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xab8], eax
cmp eax, 0xffffffff
jne 0x13a591c2
mov eax, dword [0x13a6e004]
cmp eax, ebx
je 0x13a5943b
test dword [eax + 0x1c], 0x200
je 0x13a5943b
cmp byte [eax + 0x19], 2
jb 0x13a5943b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x13a6e004]
push 0x13a0141c
push 0x13a013ec
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x13a58fcb
xor esi, esi
mov eax, edi
inc esi
sub eax, dword [ebp - 0xab4]
mov dword [ebp - 0xac4], eax
jmp 0x13a591db
mov eax, dword [ebp - 0xac4]
lea ecx, [ebp - 0xa84]
push ecx
push eax
push dword [ebp - 0xac0]
call fcn.13a66477
test eax, eax
jge 0x13a59229
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a593d6
test dword [ecx + 0x1c], 0x200
je 0x13a593d6
cmp byte [ecx + 0x19], 2
jb 0x13a593d6
push eax
push 0x13a01464
push 0x13a013ec
push 0x11
jmp 0x13a59391
lea eax, [ebp - 0x658]
push eax
call fcn.13a78e06
test eax, eax
je 0x13a593d6
test byte [ebp - 0xab0], 0x12
jne 0x13a593ef
lea eax, [ebp - 0xa84]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x13a59253
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x13a593ef
mov ecx, dword [ebp - 0xab4]
add eax, ecx
cmp eax, edi
jge 0x13a593ef
lea eax, [ebp - 0xa84]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.13a66477
test eax, eax
jge 0x13a592c9
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a593d6
test dword [ecx + 0x1c], 0x200
je 0x13a593d6
cmp byte [ecx + 0x19], 2
jb 0x13a593d6
push eax
push 0x13a01464
push 0x13a013ec
push 0x12
jmp 0x13a59391
lea eax, [ebp - 0x248]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x13a592e3
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x10], 0
jne 0x13a5939e
push 0x1d
lea eax, [ebp - 0x40]
push eax
push 0x42e
push dword [0x13a6e178]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x13a5930c
mov word [ebp - 0x40], ax
push 0x13a01418
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.13a58deb
test eax, eax
jge 0x13a59356
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a593d6
test dword [ecx + 0x1c], 0x200
je 0x13a593d6
cmp byte [ecx + 0x19], 2
jb 0x13a593d6
push eax
push 0x13a01464
push 0x13a013ec
push 0x13
jmp 0x13a59391
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.13a58deb
test eax, eax
jge 0x13a5939e
mov ecx, dword [0x13a6e004]
cmp ecx, ebx
je 0x13a593d6
test dword [ecx + 0x1c], 0x200
je 0x13a593d6
cmp byte [ecx + 0x19], 2
jb 0x13a593d6
push eax
push 0x13a01444
push 0x13a013ec
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.13a58ce7
jmp 0x13a593d6
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x248]
push eax
push 0
push 0x180
push dword [ebp - 0xabc]
call esi
cmp eax, 0xffffffff
je 0x13a593d6
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
setne cl
push ecx
push eax
push 0x19a
push dword [ebp - 0xabc]
call esi
lea eax, [ebp - 0xab0]
push eax
push dword [ebp - 0xab8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
je 0x13a593f9
test esi, esi
jne 0x13a591d5
jmp 0x13a5942f
mov eax, dword [0x13a6e004]
cmp eax, ebx
je 0x13a5942f
test dword [eax + 0x1c], 0x200
je 0x13a5942f
cmp byte [eax + 0x19], 5
jb 0x13a5942f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x13a6e004]
push 0x13a013ec
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
push dword [ebp - 0xab8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13a619a5
leave
ret 0xc