Function at 0x462fa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51692a
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x28c], eax
mov edi, ecx
mov dword [ebp - 0x290], edi
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], 0
je 0x463039
push 1
xor eax, eax
mov dword [ebp - 0x2e4], 0
push 0x53f614
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], ax
call fcn.00414320
lea esi, [ebp - 0x2f4]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x463053
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00414920
mov esi, eax
mov dword [ebp - 4], 1
mov eax, 2
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x4635da
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x463081
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2dc]
call fcn.0041ba50
mov eax, dword [ebp - 0x284]
or eax, 4
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4630c2
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0041b860
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x284]
or eax, 8
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c8]
cmp edx, 8
jb 0x46315a
mov ecx, dword [ebp - 0x2dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46314a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4635df
push edx
push ecx
call fcn.004d06e3
mov eax, dword [ebp - 0x284]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], cx
mov byte [ebp - 4], 5
test al, 2
je 0x4631eb
mov edx, dword [ebp - 0x2b0]
and eax, 0xfffffffd
mov dword [ebp - 0x284], eax
cmp edx, 8
jb 0x4631ce
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4631be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4635df
push edx
push ecx
call fcn.004d06e3
mov eax, dword [ebp - 0x284]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 7
mov word [ebp - 0x2c4], cx
mov byte [ebp - 4], 6
test al, 1
je 0x46323c
mov edx, dword [ebp - 0x2e0]
and eax, 0xfffffffe
mov dword [ebp - 0x284], eax
cmp edx, 8
jb 0x46323c
mov ecx, dword [ebp - 0x2f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x463232
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4635df
push edx
push ecx
call fcn.004d06e3
add esp, 8
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x280]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
jne 0x4632d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x4635e4
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4632ae
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4632a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46360f
push edx
push ecx
call fcn.004d06e3
add esp, 8
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.004d0675
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x280]
shr eax, 4
and al, 1
mov dword [ebp - 0x14], eax
je 0x463369
mov ecx, 0x544224
lea eax, [ebp - 0x254]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x463316
test dx, dx
je 0x463312
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x463316
add eax, 4
add ecx, 4
test dx, dx
jne 0x4632f0
xor eax, eax
jmp 0x46331b
sbb eax, eax
or eax, 1
test eax, eax
je 0x463561
mov ecx, 0x5450d0
lea eax, [ebp - 0x254]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x463356
test dx, dx
je 0x463352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x463356
add eax, 4
add ecx, 4
test dx, dx
jne 0x463330
xor eax, eax
jmp 0x46335b
sbb eax, eax
or eax, 1
test eax, eax
je 0x463561
cmp byte [ebp + 0x10], 0
jne 0x4633da
cmp byte [ebp + 0xc], 0
je 0x463391
mov ecx, dword [ebp - 0x28c]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x46337f
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4633d0
mov eax, dword [ebp - 0x294]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x4635d5
mov eax, dword [eax]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x290]
mov ecx, edi
call dword [0x51a4a0]
mov ecx, dword [ebp - 0x288]
call edi
mov edi, dword [ebp - 0x290]
cmp byte [ebp - 0x14], 0
je 0x463561
cmp byte [ebp + 0xc], 0
je 0x463561
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x4635da
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x463406
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c4]
call fcn.0041ba50
or dword [ebp - 0x284], 0x10
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x463431
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c4]
call fcn.0041b860
or dword [ebp - 0x284], 0x20
xor ecx, ecx
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x29c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x2ac]
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
push dword [ebp - 0x294]
call fcn.00462fa0
mov byte [ebp - 4], 8
add esp, 0xc
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x463500
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4634f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4635df
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
cmp edx, 8
jb 0x463561
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x463557
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4635df
push edx
push ecx
call fcn.004d06e3
add esp, 8
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4632d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x463595
lea ecx, [ebp - 0x2c]
call fcn.004146e0
push eax
push str.Unable_to_enumerate_directory__ls_
push edi
jmp 0x4635f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4632ae
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4632a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46360f
jmp 0x4632a4
call fcn.004cd3ba
call fcn.00414310
call fcn.004ebf29
lea ecx, [ebp - 0x2c]
call fcn.004146e0
push eax
push str.Unable_to_enumerate_directory__ls_
push esi
lea ecx, [ebp - 0x2a8]
call fcn.00416ba0
push 0x55c1ac
lea eax, [ebp - 0x2a8]
push eax
call fcn.004e81cb
call fcn.004ebf29
int3