Function at 0x642c21ab
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac4
mov eax, dword [0x642c9004]
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 [section..data]
mov ebx, 0x642c11fc
cmp eax, section..data
je 0x642c224c
test dword [eax + 0x1c], 0x200
je 0x642c224c
cmp byte [eax + 0x19], 4
jb 0x642c224c
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.642c2001
test edi, edi
je 0x642c26f3
cmp word [edi], 0
je 0x642c26f3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x642c2263
sub eax, edx
sar eax, 1
cmp eax, 0xff
mov dword [ebp - 0xab4], eax
jge 0x642c26f3
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x450]
push eax
call fcn.642c20b8
test eax, eax
jge 0x642c22db
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c26f3
test dword [ecx + 0x1c], 0x200
je 0x642c26f3
cmp byte [ecx + 0x19], 2
jb 0x642c26f3
push eax
push 0x642c1294
push ebx
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.642c55de
jmp 0x642c26f3
lea eax, [ebp - 0x450]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x642c22f7
cmp word [eax + 2], 0
je 0x642c2348
push 0x642c1290
push edi
lea eax, [ebp - 0x450]
push eax
call fcn.642c20f2
test eax, eax
jge 0x642c2341
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c26f3
test dword [ecx + 0x1c], 0x200
je 0x642c26f3
cmp byte [ecx + 0x19], 2
jb 0x642c26f3
push eax
push 0x642c1274
push ebx
push 0xc
jmp 0x642c22cb
add dword [ebp - 0xab4], 2
lea eax, [ebp - 0x450]
push eax
push edi
lea eax, [ebp - 0x658]
push eax
call fcn.642c20b8
test eax, eax
jge 0x642c2397
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c26f3
test dword [ecx + 0x1c], 0x200
je 0x642c26f3
cmp byte [ecx + 0x19], 2
jb 0x642c26f3
push eax
push 0x642c1294
push ebx
push 0xd
jmp 0x642c22cb
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
mov esi, 0x642c1268
push esi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x860]
push edi
push eax
call fcn.642c214c
add esp, 0x24
push esi
push edi
lea eax, [ebp - 0x860]
push eax
call fcn.642c20f2
test eax, eax
jge 0x642c2429
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c26f3
test dword [ecx + 0x1c], 0x200
je 0x642c26f3
cmp byte [ecx + 0x19], 2
jb 0x642c26f3
push eax
push 0x642c1248
push ebx
push 0xe
jmp 0x642c22cb
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 0x642c248e
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c26f3
test dword [eax + 0x1c], 0x200
je 0x642c26f3
cmp byte [eax + 0x19], 2
jb 0x642c26f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x642c122c
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x642c22d1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
sub eax, dword [ebp - 0xab4]
mov dword [ebp - 0xac4], eax
jmp 0x642c24aa
mov eax, dword [ebp - 0xac4]
lea ecx, [ebp - 0xa84]
push ecx
push eax
push dword [ebp - 0xac0]
call fcn.642c20b8
test eax, eax
jge 0x642c24f8
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2697
test dword [ecx + 0x1c], 0x200
je 0x642c2697
cmp byte [ecx + 0x19], 2
jb 0x642c2697
push eax
push 0x642c1294
push ebx
push 0x10
jmp 0x642c2658
lea eax, [ebp - 0x658]
push eax
call fcn.642d2d69
test eax, eax
je 0x642c2697
test byte [ebp - 0xab0], 0x12
jne 0x642c2697
lea eax, [ebp - 0xa84]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x642c2522
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x642c2697
mov ecx, dword [ebp - 0xab4]
add eax, ecx
cmp eax, edi
jge 0x642c2697
lea eax, [ebp - 0xa84]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.642c20b8
test eax, eax
jge 0x642c2598
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2697
test dword [ecx + 0x1c], 0x200
je 0x642c2697
cmp byte [ecx + 0x19], 2
jb 0x642c2697
push eax
push 0x642c1294
push ebx
push 0x11
jmp 0x642c2658
lea eax, [ebp - 0x248]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x642c25b2
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x10], 0
jne 0x642c2665
push 0x1e
lea eax, [ebp - 0x40]
push eax
push 0x42e
push dword [0x642c9068]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x642c1228
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.642c20f2
test eax, eax
jge 0x642c261d
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2697
test dword [ecx + 0x1c], 0x200
je 0x642c2697
cmp byte [ecx + 0x19], 2
jb 0x642c2697
push eax
push 0x642c1274
push ebx
push 0x12
jmp 0x642c2658
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.642c20f2
test eax, eax
jge 0x642c2665
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2697
test dword [ecx + 0x1c], 0x200
je 0x642c2697
cmp byte [ecx + 0x19], 2
jb 0x642c2697
push eax
push 0x642c1274
push ebx
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.642c55de
jmp 0x642c2697
lea eax, [ebp - 0x248]
push eax
push 0
push 0x180
push dword [ebp - 0xabc]
call esi
cmp eax, 0xffffffff
je 0x642c2697
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]
test eax, eax
jne 0x642c24a4
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c26e7
test dword [eax + 0x1c], 0x200
je 0x642c26e7
cmp byte [eax + 0x19], 5
jb 0x642c26e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.642c5545
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.642c51c5
leave
ret 0xc