Function at 0x402809
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x41fa38
call fcn.00411868
sub esp, 0x1b0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
and byte [ebp - 0xd], bl
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00402b85
lea ecx, [esi + 4]
call fcn.00402b85
push dword [ebp + 8]
mov ecx, edi
call fcn.0040f7a7
cmp dword [esi + 0x20], ebx
jle 0x402a77
cmp byte [ebp - 0xd], 0
jne 0x402a77
mov ecx, esi
call fcn.00402a8b
test al, al
jne 0x402a77
mov ecx, edi
call fcn.0040f77d
push eax
lea ecx, [ebp - 0x48]
call fcn.0040e423
mov eax, dword [edi + 8]
mov ecx, edi
dec eax
mov dword [ebp - 4], ebx
push eax
call fcn.00402b36
lea eax, [ebp - 0x48]
lea ecx, [esi + 4]
push eax
call fcn.0040f7a7
lea eax, [ebp - 0x48]
push eax
call fcn.00410b02
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call dword [eax + 8]
test al, al
jne 0x402a20
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040e423
push 0x42833c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040e51c
push 0x140
lea eax, [ebp - 0x1bc]
push ebx
push eax
call fcn.00411400
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.0040e3f3
lea eax, [ebp - 0x1bc]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a06
lea eax, [ebp - 0x190]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040e4f6
mov eax, dword [ebp - 0x1bc]
and dword [ebp + 8], 0
mov dword [ebp - 0x18], eax
push 0x428338
lea ecx, [ebp - 0x38]
call fcn.0040f315
test eax, eax
je 0x4029aa
push 0x428334
lea ecx, [ebp - 0x38]
call fcn.0040f315
test eax, eax
je 0x4029aa
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040e423
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0040e510
test byte [ebp - 0x18], 0x10
je 0x402978
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040f7a7
jmp 0x40299e
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call dword [eax + 4]
inc dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x14]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x40299e
push 1
call fcn.0040c73c
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040e4dc
lea eax, [ebp - 0x1bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4029d6
lea eax, [ebp - 0x190]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040e4f6
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x18], eax
jmp 0x4029e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov dword [ebp + 8], eax
jne 0x402a31
cmp byte [ebp - 0xd], 0
jne 0x4029ff
cmp dword [ebp + 8], 0
jne 0x4029ff
mov ecx, esi
call fcn.00402a8b
test al, al
je 0x402927
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040e4dc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040e4dc
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e4dc
jmp 0x402842
push dword [0x42b830]
lea ecx, [ebp - 0x24]
call fcn.0040f88a
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0040fa96
push dword [ebp - 0x24]
lea ecx, [ebp - 0x68]
call fcn.0040e496
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 5
call fcn.00409301
lea eax, [ebp - 0x7c]
push 0x423228
push eax
call fcn.00411936
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4