Function at 0x406870
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x42bead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x47f64c]
push edi
mov eax, dword [esi + 0x40]
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edi, dword [eax + 0x70]
mov dword [esp + 0x18], ecx
push 0x47f298
lea ecx, [esp + 0x28]
mov dword [esp + 0x178], ebp
call fcn.0041bddb
mov edx, dword [esi + 0x40]
mov ebx, 1
add edx, 0x5c
mov byte [esp + 0x174], bl
push edx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0041bf50
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
add ecx, 0x14
mov byte [esp + 0x174], 2
push ecx
push eax
push edx
call fcn.0041bf50
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 5
call fcn.0041bd6d
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 4
call fcn.0041bd6d
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x1c]
add eax, 0x14
push eax
call fcn.0041bae2
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x174], 6
add ecx, 0x50
push ecx
lea ecx, [esp + 0x24]
call fcn.0041bae2
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x174], 7
mov ecx, dword [eax - 8]
mov cl, byte [ecx + eax - 1]
cmp cl, 0x2f
je 0x406963
push 0x2f
lea ecx, [esp + 0x20]
call fcn.0041c0fd
jmp 0x406979
push 0x47f310
push eax
call fcn.0040a077
add esp, 8
test eax, eax
jne 0x406979
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x20]
push 0x74
push edx
call fcn.00403260
add esp, 8
mov ecx, esi
push 0xe130
call fcn.00405e50
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00405de0
push 0xe131
mov ecx, esi
call fcn.00405e50
cmp dword [esp + 0x10], ebp
je 0x4069be
push 0xe134
mov ecx, esi
call fcn.00405e50
cmp edi, ebp
je 0x4069d0
push 0xe139
lea ecx, [esp + 0x1c]
call fcn.0041c2ab
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push 0xe132
push edx
call fcn.004158ff
add esp, 0xc
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00405de0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406a56
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00406b50
lea edx, [esp + 0x2c]
mov ebx, eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x406a52
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00406b50
lea edx, [esp + 0x2c]
add ebx, eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a2e
test ebx, ebx
jne 0x406a62
push 0xe136
mov ecx, esi
call fcn.00405e50
push 0xe138
mov ecx, esi
call fcn.00405e50
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x406aab
test edi, edi
je 0x406a88
push 0xe13c
lea ecx, [esp + 0x1c]
call fcn.0041c2ab
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0xe135
push ecx
call fcn.004158ff
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.00405de0
push 0xe137
mov ecx, esi
call fcn.00405e50
push 0x47f2b4
lea ecx, [esp + 0x14]
call fcn.0041bddb
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x178], 8
call fcn.00405de0
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 7
call fcn.0041bd6d
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 6
call fcn.0041bd6d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x174], 4
call fcn.0041bd6d
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0
call fcn.0041bd6d
lea ecx, [esp + 0x18]
mov dword [esp + 0x174], 0xffffffff
call fcn.0041bd6d
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret