Function at 0x405110
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427fba
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 4], edi
mov esi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
lea edx, [ecx + 0xf0]
mov byte [ebp - 4], 1
push str.frame_.bmp
lea ecx, [ebp - 0x5c]
call fcn.00409990
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4051b3
mov eax, dword [eax]
lea ecx, [ebp - 0x2b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x2c0], eax
cmp edx, 8
jb 0x405207
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4051f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054de
push edx
push ecx
call fcn.004103f8
mov eax, dword [ebp - 0x2c0]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], cx
cmp eax, 0xffffffff
je 0x4054c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x2b4]
or eax, 1
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2b8]
mov edx, dword [eax + 0x100]
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405270
sub ecx, dword [ebp - 0x2d4]
sar ecx, 1
lea eax, [ecx + edx]
cmp eax, 7
jbe 0x4052a8
mov byte [ebp - 0x2d8], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x2d8]
push eax
call fcn.0040a640
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x44]
add eax, 0xf0
push eax
call fcn.00409450
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x44]
call fcn.004093d0
cmp esi, 8
jb 0x405302
mov ecx, dword [ebp - 0x2c]
lea edx, [esi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4052f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054de
push edx
push ecx
call fcn.004103f8
add esp, 8
movups xmm0, xmmword [ebp - 0x44]
and dword [ebp - 0x2b4], 0xfffffffe
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x34]
mov byte [ebp - 4], 1
test byte [ebp - 0x2b0], 0x10
movq qword [ebp - 0x1c], xmm0
jne 0x405364
lea eax, [ebp - 0x2c]
push eax
cmp dword [ebp - 0x2bc], edi
je 0x405346
mov ecx, edi
call fcn.004090b0
add edi, 0x18
mov dword [ebp - 0x2c8], edi
jmp 0x405364
push edi
lea ecx, [ebp - 0x2cc]
call fcn.00409b90
mov eax, dword [ebp - 0x2c4]
mov edi, dword [ebp - 0x2c8]
mov dword [ebp - 0x2bc], eax
mov esi, dword [ebp - 0x2c0]
lea eax, [ebp - 0x2b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405384
mov esi, dword [ebp - 0x18]
jmp 0x405224
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4054e3
push str.Cleaning_up...
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0x2cc]
cmp esi, edi
je 0x4053ca
sub esp, 8
mov ecx, esi
call fcn.0040d926
add esi, 0x18
add esp, 8
cmp esi, edi
jne 0x4053b6
mov edx, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x5c]
push str.index.txt
lea edx, [edx + 0xf0]
call fcn.00409990
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040d926
mov edx, dword [ebp - 0x48]
add esp, 8
cmp edx, 8
jb 0x40542c
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405422
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054e8
push edx
push ecx
call fcn.004103f8
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x405466
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40545c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054ed
push edx
push ecx
call fcn.004103f8
add esp, 8
mov esi, dword [ebp - 0x2cc]
test esi, esi
je 0x4054c0
push ecx
mov edx, edi
mov ecx, esi
call fcn.00409f60
mov ecx, dword [ebp - 0x2bc]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4054b6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054f2
push ecx
push esi
call fcn.004103f8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004102b9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00413f74
call fcn.0041906a
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
int3