Function at 0x42f3d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f3418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
mov edx, ecx
push ebx
push ebp
xor ebx, ebx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov eax, dword [edx + 8]
mov dword [esp + 0x3bc], ebx
cmp eax, ebx
jne 0x42f417
lea eax, [edx + 0xc]
mov edx, str._stemplate.dat
test edx, edx
je 0x42f4f4
cmp eax, ebx
je 0x42f4f4
push eax
lea ecx, [esp + 0x14]
call fcn.0040d700
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], 1
call fcn.00401070
push str._stemplate.dat
lea ecx, [esp + 0x2c]
call fcn.00401ec0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3bc], 2
cmp eax, ebx
jne 0x42f469
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x30]
push eax
call fcn.005c2c42
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005db66d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x42f4cf
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x10]
call fcn.00401f40
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005c2bd2
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005c2c42
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3bc], 1
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], bl
call fcn.00401070
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov eax, ecx
jne 0x42f4fe
lea eax, [esp + 0x20]
lea edx, [esp + 0x164]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x42f822
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], bx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x3bc], 3
mov esi, dword [ecx + 8]
cmp esi, ebx
jne 0x42f53f
lea esi, [ecx + 0xc]
mov ecx, 0x69e048
test ecx, ecx
je 0x42f66f
cmp esi, ebx
je 0x42f66f
lea edx, [esp + 0x190]
test edx, edx
je 0x42f66f
push ecx
lea ecx, [esp + 0x50]
call fcn.00401ec0
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x3c0], 4
call fcn.0040d700
lea eax, [esp + 0x190]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x3c0], 5
call fcn.0040d700
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 6
call fcn.00401070
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x40]
call fcn.00401f40
push eax
call fcn.005c2c42
add esp, 4
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00401f40
push eax
call fcn.005c2c42
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005db66d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x42f638
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x40]
call fcn.00401f40
push eax
lea ecx, [esp + 0x5c]
call fcn.00401f40
push eax
lea ecx, [esp + 0x54]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c2bd2
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c2c42
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x3bc], 5
call fcn.00401070
lea ecx, [esp + 0x58]
mov byte [esp + 0x3bc], 4
call fcn.00401070
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3bc], 3
call fcn.00401070
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x42f677
lea eax, [esp + 0x14]
push 0x6a0900
push eax
call fcn.005c43a7
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x42f7ea
push ebp
lea edx, [esp + 0x68]
push pe_nt_image_headers32
push edx
call fcn.005c45ba
add esp, 0xc
test eax, eax
je 0x42f7e1
mov ecx, 2
mov edi, str.version
lea esi, [esp + 0x64]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x42f7e1
lea ecx, [esp + 0x38]
lea edx, [esp + 0x6c]
push ecx
push 0x69e000
push edx
call fcn.005c47fc
add esp, 0xc
cmp eax, 1
jne 0x42f7e1
cmp dword [esp + 0x38], 1
jne 0x42f7e1
push ebp
lea eax, [esp + 0x68]
push pe_nt_image_headers32
push eax
call fcn.005c45ba
add esp, 0xc
test eax, eax
je 0x42f7e1
push ebp
lea ecx, [esp + 0x68]
push pe_nt_image_headers32
push ecx
call fcn.005c45ba
add esp, 0xc
test eax, eax
je 0x42f7e1
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x64]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x42f7e1
lea eax, [esp + 0x69]
test eax, eax
je 0x42f7e1
lea ecx, [esp + 0x69]
push 0xd
push ecx
call fcn.005c2c70
add esp, 8
cmp eax, ebx
je 0x42f75c
mov byte [eax], bl
lea edx, [esp + 0x69]
push 0xa
push edx
call fcn.005c2c70
add esp, 8
cmp eax, ebx
je 0x42f771
mov byte [eax], bl
mov eax, dword [0x6c826c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x69]
lea edx, [esp + 0x2c]
push ecx
push 0x69dfbc
push edx
mov byte [esp + 0x3c8], 7
call fcn.005d809b
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp esi, ebx
jne 0x42f7a9
lea esi, [esp + 0x14]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], eax
lea ecx, [edx + 0x14]
call fcn.0042f850
lea ecx, [esp + 0x28]
mov byte [esp + 0x3bc], 3
call fcn.0042f380
push ebp
call fcn.005c41c0
add esp, 4
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x164]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [esp + 0x3bc], bl
lea ecx, [esp + 0x10]
je 0x42f816
call fcn.00401070
jmp 0x42f51a
call fcn.00401070
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3b0
ret