Function at 0x414a40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a285
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2fc], esi
mov edi, ecx
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x2f4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x2f4], 1
je 0x414f44
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x414ac6
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414f44
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x533d7c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00405590
mov dword [ebp - 0x2f4], 0x41
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x533a50
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00405590
mov dword [ebp - 0x2f4], 0xc1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.004152b0
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push eax
push dword [ebp - 0x300]
lea ecx, [ebp - 0x58]
call fcn.00415450
mov esi, 0x1c1
mov dword [ebp - 0x2f4], esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x414bad
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414ba3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f61
push ecx
push edx
call fcn.004bd6ef
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x414bff
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414bf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f61
push ecx
push edx
call fcn.004bd6ef
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x414c51
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414c47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f61
push ecx
push edx
call fcn.004bd6ef
add esp, 8
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2f8], eax
cmp eax, 0xffffffff
je 0x414f0e
nop dword [eax]
test byte [ebp - 0x2f0], 0x10
jne 0x414e40
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x533a50
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00405590
or esi, 8
mov dword [ebp - 0x2f4], esi
mov edx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.004152b0
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00413f40
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x414d37
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
add dword [edi + 4], 0x18
jmp 0x414d40
push eax
push ecx
mov ecx, edi
call fcn.0040e4f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x414d81
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414d77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f61
push ecx
push edx
call fcn.004bd6ef
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp ecx, 8
jb 0x414ddc
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414dd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f61
push ecx
push edx
call fcn.004bd6ef
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
cmp ecx, 8
jb 0x414ee7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414e31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f61
push ecx
push edx
call fcn.004bd6ef
add esp, 8
jmp 0x414ee7
mov eax, dword [ebp - 0x2f4]
test al, 4
je 0x414e93
mov ecx, dword [ebp - 0x44]
and eax, 0xfffffffb
mov dword [ebp - 0x2f4], eax
cmp ecx, 8
jb 0x414e93
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414e83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f66
push ecx
push edx
call fcn.004bd6ef
mov eax, dword [ebp - 0x2f4]
add esp, 8
mov dword [ebp - 4], 7
test al, 2
je 0x414ee1
and eax, 0xfffffffd
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x414ee1
mov edx, dword [ebp - 0x58]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414ed7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f66
push ecx
push edx
call fcn.004bd6ef
add esp, 8
mov esi, dword [ebp - 0x2f4]
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414c80
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x414f44
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414f3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414f66
push ecx
push edx
call fcn.004bd6ef
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret
call fcn.004e61e1
call fcn.004e61e1
int3