Function at 0x642c2050
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac0
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x642c8340]
push ebx
push esi
push edi
mov ebx, 0x208
mov dword [ebp - 0xab8], eax
push ebx
xor esi, esi
lea eax, [ebp - 0x24c]
push esi
push eax
mov edi, edx
mov dword [ebp - 0xac0], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x454]
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x864]
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c20e3
test dword [eax + 0x1c], 0x200
je 0x642c20e3
cmp byte [eax + 0x19], 4
jb 0x642c20e3
push dword [eax + 0x14]
mov edx, 0x642c1340
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.642c1faa
test edi, edi
je 0x642c25ab
cmp word [edi], si
je 0x642c25ab
mov esi, edi
xor edx, edx
push 2
pop ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, ebx
cmp ax, dx
jne 0x642c20fe
sub esi, ecx
sar esi, 1
cmp esi, 0xff
jge 0x642c25ab
push edi
mov edx, 0x104
lea ecx, [ebp - 0x24c]
call fcn.642c1e50
test eax, eax
jns 0x642c2173
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c25ab
test dword [ecx + 0x1c], 0x200
je 0x642c25ab
cmp byte [ecx + 0x19], bl
jb 0x642c25ab
push eax
push 0x642c11b0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xb
mov edx, 0x642c1340
pop ecx
call fcn.642c1fec
jmp 0x642c25ab
lea eax, [ebp - 0x24c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
xor edi, edi
pop ecx
test eax, eax
je 0x642c2190
cmp word [eax + 2], di
je 0x642c21e3
push 0x642c11cc
mov edx, 0x104
lea ecx, [ebp - 0x24c]
call fcn.642c1e85
test eax, eax
jns 0x642c21e1
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c25ab
test dword [ecx + 0x1c], 0x200
je 0x642c25ab
cmp byte [ecx + 0x19], bl
jb 0x642c25ab
push eax
push 0x642c11d0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
jmp 0x642c2163
add esi, ebx
lea eax, [ebp - 0x24c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x864]
call fcn.642c1e50
test eax, eax
jns 0x642c2239
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c25ab
test dword [ecx + 0x1c], 0x200
je 0x642c25ab
cmp byte [ecx + 0x19], bl
jb 0x642c25ab
push eax
push 0x642c11b0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
jmp 0x642c2163
lea eax, [ebp - 0x864]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
push 0x208
mov dword [ebp - 0xabc], eax
lea eax, [ebp - 0x65c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x24c]
mov edi, 0x642c11ec
push edi
push eax
lea eax, [ebp - 0x65c]
push 0x104
push eax
call fcn.642c1ef3
add esp, 0x10
lea ecx, [ebp - 0x65c]
mov edx, 0x104
push edi
call fcn.642c1e85
test eax, eax
jns 0x642c22d3
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c25ab
test dword [ecx + 0x1c], 0x200
je 0x642c25ab
cmp byte [ecx + 0x19], bl
jb 0x642c25ab
push eax
push 0x642c11f8
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xe
jmp 0x642c2163
lea eax, [ebp - 0xab4]
push eax
lea eax, [ebp - 0x65c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x642c2332
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c25ab
test dword [eax + 0x1c], 0x200
je 0x642c25ab
cmp byte [eax + 0x19], bl
jb 0x642c25ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x642c1218
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
jmp 0x642c2163
mov ebx, 0x104
sub ebx, esi
mov ecx, dword [ebp - 0xabc]
lea eax, [ebp - 0xa88]
push eax
mov edx, ebx
call fcn.642c1e50
test eax, eax
jns 0x642c2398
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2554
test dword [ecx + 0x1c], 0x200
je 0x642c2554
cmp byte [ecx + 0x19], 2
jb 0x642c2554
push eax
push 0x642c11b0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x10
mov edx, 0x642c1340
pop ecx
call fcn.642c1fec
jmp 0x642c2554
lea ecx, [ebp - 0x864]
call fcn.642d1d0e
test eax, eax
je 0x642c2554
test byte [ebp - 0xab4], 0x12
jne 0x642c2554
lea ecx, [ebp - 0xa88]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xac0]
jne 0x642c23c1
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jle 0x642c2554
lea eax, [ecx + esi]
mov ecx, 0x104
cmp eax, ecx
jge 0x642c2554
lea eax, [ebp - 0xa88]
mov edx, ecx
push eax
lea ecx, [ebp - 0x454]
call fcn.642c1e50
test eax, eax
jns 0x642c2441
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2554
test dword [ecx + 0x1c], 0x200
je 0x642c2554
cmp byte [ecx + 0x19], 2
jb 0x642c2554
push eax
push 0x642c11b0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x11
jmp 0x642c2388
lea eax, [ebp - 0x454]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x642c245b
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], 0
jne 0x642c2519
push 0x1e
lea eax, [ebp - 0x44]
push eax
push 0x42e
push dword [0x642c8348]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x642c1234
mov edx, 0x104
lea ecx, [ebp - 0x454]
call fcn.642c1e85
test eax, eax
jns 0x642c24d1
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2554
test dword [ecx + 0x1c], 0x200
je 0x642c2554
cmp byte [ecx + 0x19], 2
jb 0x642c2554
push eax
push 0x642c11d0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x12
jmp 0x642c2388
lea eax, [ebp - 0x44]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x454]
call fcn.642c1e85
test eax, eax
jns 0x642c2519
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c2554
test dword [ecx + 0x1c], 0x200
je 0x642c2554
cmp byte [ecx + 0x19], 2
jb 0x642c2554
push eax
push 0x642c11d0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x13
jmp 0x642c2388
lea eax, [ebp - 0x454]
push eax
xor eax, eax
push eax
push 0x180
push dword [ebp - 0xab8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x642c2554
xor ecx, ecx
cmp dword [ebp + 8], ecx
setne cl
push ecx
push eax
push 0x19a
push dword [ebp - 0xab8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0xab4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x642c2339
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c25a4
test dword [eax + 0x1c], 0x200
je 0x642c25a4
cmp byte [eax + 0x19], 5
jb 0x642c25a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
mov edx, 0x642c1340
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.642c1fc8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c7760
leave
ret 4