Function at 0x402910
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e471
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x598
mov eax, dword [0x412450]
mov dword [esp + 0x594], eax
mov eax, dword [esp + 0x5a8]
push ebx
lea edx, [esp + 0x58]
sub edx, eax
push edi
mov dword [esp + 0xc], ecx
xor ebx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402950
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402961
sub eax, edx
cmp byte [esp + eax + 0x5b], 0x5c
je 0x402987
lea edi, [esp + 0x5c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x402976
mov ax, word [0x40f1dc]
mov word [edi], ax
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x5c]
mov byte [esp + eax + 0x39c], cl
inc eax
cmp cl, bl
jne 0x402990
lea edi, [esp + 0x5c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4029a5
mov ecx, dword [str..txt]
mov dx, word [0x40f1d8]
mov dword [edi], ecx
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x60]
push ecx
mov word [edi + 4], dx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4029e3
xor al, al
jmp 0x402b4f
xor eax, eax
jmp 0x4029f0
mov cl, byte [esp + eax + 0x39c]
mov byte [esp + eax + 0x5c], cl
inc eax
cmp cl, bl
jne 0x4029f0
push ebp
push esi
mov ebp, 0xf
jmp 0x402a10
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5b0], 2
xor eax, eax
mov cl, byte [esp + eax + 0x64]
mov byte [esp + eax + 0x3a4], cl
inc eax
cmp cl, bl
jne 0x402a41
lea eax, [esp + 0x290]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a60
lea edi, [esp + 0x3a4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402a71
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x3a4]
rep movsb byte es:[edi], byte [esi]
push edx
lea ecx, [esp + 0x1c]
call fcn.004020f0
cmp al, 1
jne 0x402aaf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
add ecx, 4
call fcn.00402880
mov eax, dword [esp + 0x58]
cmp eax, ebx
mov dword [esp + 0x5b0], 0xffffffff
je 0x402acb
push eax
call fcn.004041cd
add esp, 4
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp eax, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
jb 0x402af1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004041cd
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x402b10
mov edx, dword [esp + 0x20]
push edx
call fcn.004041cd
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x264]
push eax
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402a10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
pop esi
mov dword [eax], ecx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x5a0]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x598]
pop ebx
call fcn.00404b1b
add esp, 0x5a4
ret 4