Function at 0x42c3c1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x479b74]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x26c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov edi, ecx
push 0x250
mov dword [ebp - 0x270], eax
mov ebx, esi
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x268], edx
push esi
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x274], ebx
add esp, 0xc
and dword [ebp - 0x260], ebx
test edi, edi
je 0x42c8ba
xor eax, eax
cmp ax, word [edi]
je 0x42c8ba
lea edx, [ebp - 0x260]
mov ecx, edi
call fcn.0042c222
test eax, eax
je 0x42c4fd
cmp dword [ebp - 0x260], ebx
je 0x42c4fd
and dword [ebp - 0x264], ebx
test dword [ebp + 0x10], 2
jne 0x42c4a4
lea edx, [ebp - 0x264]
mov ecx, edi
call fcn.0042c37f
test eax, eax
je 0x42c478
cmp dword [ebp - 0x264], ebx
jne 0x42c4fd
and dword [ebp - 0x264], ebx
test dword [ebp + 0x10], 1
jne 0x42c4a4
lea edx, [ebp - 0x264]
mov ecx, edi
call fcn.0042c292
test eax, eax
je 0x42c4b4
cmp dword [ebp - 0x264], reloc.OLEAUT32.dll_VariantClear
je 0x42c4fd
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x42c8c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov ecx, edi
call fcn.0042c222
test eax, eax
je 0x42c4fd
cmp dword [ebp - 0x260], ebx
je 0x42c4fd
mov esi, dword [ebp - 0x264]
push esi
push 0x40dba0
push 0x2000000
push 0x47bfe4
call fcn.0042a2a7
add esp, 0x10
push esi
jmp 0x42c8bc
mov edx, 0x409e50
mov ecx, edi
call fcn.0042db6e
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x42c85c
xor edx, edx
mov ecx, eax
call fcn.0042a313
mov ebx, eax
test ebx, ebx
je 0x42c85c
lea ecx, [ebp - 0x25c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x42c7ff
push 0x38
lea ecx, [ebp - 0x2ac]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x260], ecx
cmp ax, word [edi]
je 0x42c667
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x230]
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x278], ecx
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x288], ecx
mov ecx, edi
mov dword [ebp - 0x28c], eax
call fcn.0042db6e
mov dword [ebp - 0x284], eax
test eax, eax
je 0x42c658
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x284]
test eax, eax
je 0x42c62e
add eax, 2
mov dword [ebp - 0x280], eax
jmp 0x42c634
mov dword [ebp - 0x280], ecx
test ecx, ecx
je 0x42c63f
call fcn.0042a83e
jmp 0x42c649
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x42c658
xor eax, eax
inc eax
jmp 0x42c671
lea ecx, [ebp - 0x2ac]
call fcn.0042c1d5
mov eax, esi
jmp 0x42c677
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov dword [ebp - 0x260], eax
cmp eax, 1
jne 0x42c72a
test byte [ebp - 0x2ac], 0x10
je 0x42c6ff
cmp dword [ebp - 0x268], esi
je 0x42c72a
push 0xffffffffffffffff
push dword [ebp - 0x280]
push 0xffffffffffffffff
push 0x407ef8
push eax
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x42c72a
push 0xffffffffffffffff
push dword [ebp - 0x280]
push 0xffffffffffffffff
push 0x407a68
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x42c72a
push dword [ebp - 0x270]
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2ac]
push dword [ebp - 0x26c]
push eax
call dword [0x47d838]
call dword [ebp - 0x268]
jmp 0x42c724
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x42c72a
push dword [ebp - 0x270]
lea ecx, [ebp - 0x2ac]
push ecx
mov ecx, eax
call dword [0x47d838]
call dword [ebp - 0x26c]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x284], esi
je 0x42c753
push dword [ebp - 0x284]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x284], eax
cmp dword [ebp - 0x27c], esi
je 0x42c770
push dword [ebp - 0x27c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x38
lea eax, [ebp - 0x2ac]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0x260], 1
jne 0x42c7d0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x42c55a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x42c7bf
mov dword [ebp - 0x274], 1
jmp 0x42c7f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x40dc48
jmp 0x42c7df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x40dcb8
push 0x2000000
push 0x47bfe4
call fcn.0042a2a7
add esp, 0x14
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42c87d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x40de30
push 0x2000000
push 0x47bfe4
call fcn.0042a2a7
mov ecx, ebx
add esp, 0x14
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42c827
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x42c87f
push 0x40dea8
push 0x3000000
push 0x47bfe4
call fcn.0042a2a7
add esp, 0xc
mov esi, 0xce
jmp 0x42c87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x40dda8
push 0x2000000
push 0x47bfe4
call fcn.0042a2a7
add esp, 0x14
xor edi, edi
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x42c898
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x42c8ab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x274]
jmp 0x42c8c4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004729c0
leave
ret 0xc