Function at 0x414340
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov eax, edx
mov dword [ebp - 0x2b4], ebx
push 0x5052c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.004048c0
add esp, 4
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2ac], edi
cmp edi, 0xffffffff
jne 0x414497
push 0xb5c
push str.SetupRenderEngineOp::GetEnginePathDir
push str.__s__d___hFind_is_INVALID_HANDLE_VALUE
call fcn.0041f720
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
cmp eax, 8
jb 0x414420
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414410
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414774
push edx
push ecx
call fcn.004bdd39
mov edx, dword [ebp - 0xc]
add esp, 8
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x414484
push ecx
call fcn.004058e0
mov ecx, dword [ebp - 8]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x10]
add esp, 4
sub ecx, esi
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 0x41447a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414774
push ecx
push esi
call fcn.004bdd39
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, eax
nop
test byte [ebp - 0x2a8], 0x10
je 0x414691
push 0x5010a8
lea eax, [ebp - 0x27c]
push eax
call edi
test eax, eax
je 0x414691
push 0x5010d4
lea eax, [ebp - 0x27c]
push eax
call edi
test eax, eax
je 0x414691
mov edx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x58]
call fcn.004048c0
add esp, 4
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
push str.360hbengine.dll
call fcn.004048c0
add esp, 4
mov dword [ebp - 0x2bc], 0
xor eax, eax
mov dword [ebp - 0x2b8], 7
lea ecx, [ebp - 0x27c]
mov word [ebp - 0x2cc], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414530
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00403e30
lea ecx, [ebp - 0x2cc]
or esi, 1
call fcn.004147b0
test al, al
je 0x41457e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41457e
mov bl, 1
jmp 0x414580
xor bl, bl
mov edx, dword [ebp - 0x2b8]
and esi, 0xfffffffe
cmp edx, 8
jb 0x4145c3
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4145b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414774
push edx
push ecx
call fcn.004bdd39
add esp, 8
test bl, bl
je 0x4145eb
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x58]
push ecx
cmp dword [ebp - 8], eax
je 0x4145e0
mov ecx, eax
call fcn.00402f60
add dword [ebp - 0xc], 0x18
jmp 0x414603
push eax
lea ecx, [ebp - 0x10]
call fcn.00404950
jmp 0x414603
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.00402f60
mov cl, 1
call fcn.004110c0
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41463d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414633
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414774
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x41468b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414681
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414774
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ebx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4144a0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x2b4]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp eax, 8
jb 0x41470e
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4146fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414774
push edx
push ecx
call fcn.004bdd39
mov edx, dword [ebp - 0xc]
add esp, 8
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x414484
push ecx
call fcn.004058e0
mov ecx, dword [ebp - 8]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x10]
add esp, 4
sub ecx, esi
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 0x41447a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41447a
call fcn.004c8da3
int3