Function at 0x4c76e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c56ab
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x7f3784]
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, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2c8], edi
mov byte [ebp - 0x2c1], 1
test esi, esi
je 0x4c7cc8
push edi
push esi
call fcn.00667a44
add esp, 8
test eax, eax
jne 0x4c7cc8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7763
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0049f4a0
push 2
push 0x71d280
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a3920
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2e8], eax
nop
mov edx, 0x71a32c
lea ecx, [ebp - 0x294]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4c77e6
test ax, ax
je 0x4c77e2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4c77e6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4c77c0
xor eax, eax
jmp 0x4c77eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c7bde
mov ecx, 0x71d288
lea eax, [ebp - 0x294]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c7826
test dx, dx
je 0x4c7822
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c7826
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c7800
xor eax, eax
jmp 0x4c782b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c7bde
mov ecx, esi
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7850
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.0049f4a0
push 1
push 0x71d1b8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004a3920
mov dword [ebp - 0x48], 0
xor ecx, ecx
mov dword [ebp - 0x44], 0
or edi, 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c78c0
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004a3920
xor ecx, ecx
or edi, 2
mov dword [ebp - 0x2c8], edi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x2e4], xmm1
movups xmmword [ebp - 0x2fc], xmm0
cmp edx, 8
jb 0x4c795b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7942
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
push edx
push ecx
call fcn.0063bb18
movups xmm0, xmmword [ebp - 0x2fc]
add esp, 8
movq xmm1, qword [ebp - 0x2e4]
mov edx, dword [ebp - 0x44]
movq qword [ebp - 0x18], xmm1
mov byte [ebp - 4], 2
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x4c79a2
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7998
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4c79f4
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c79ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x2dc], eax
cmp edi, eax
je 0x4c7a7f
lea edx, [ebp - 0x294]
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4c7a13
sub edx, esi
sar edx, 1
mov dword [ebp - 0x2d8], edx
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x4c7a32
mov edx, dword [edi]
mov esi, dword [edi + 0x10]
cmp esi, dword [ebp - 0x2d8]
jne 0x4c7a70
lea ecx, [ebp - 0x294]
test esi, esi
je 0x4c7a77
mov eax, ecx
sub edx, eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], edx
mov dx, word [edx + ecx]
cmp dx, word [ecx]
jne 0x4c7a70
add ecx, 2
sub esi, 1
je 0x4c7a77
mov edx, dword [ebp - 0x2e0]
jmp 0x4c7a57
add edi, 0x18
cmp edi, eax
jne 0x4c7a28
cmp edi, eax
jne 0x4c7bd8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4c7bc4
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2d4]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.004c76e0
mov esi, dword [ebp - 0x2d4]
add esp, 8
mov byte [ebp - 4], 1
test esi, esi
je 0x4c7bb0
mov edi, dword [ebp - 0x2d0]
cmp esi, edi
je 0x4c7b4b
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4c7b2b
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c7b21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
mov eax, edx
push ecx
push eax
call fcn.0063bb18
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4c7af2
mov esi, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x2cc]
mov eax, 0x2aaaaaab
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 0x4c7b88
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
push ecx
push esi
call fcn.0063bb18
add esp, 8
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4c7bd8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.006677cd
add esp, 4
mov edi, dword [ebp - 0x2c8]
mov esi, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c7c01
mov esi, dword [ebp - 0x2ec]
jmp 0x4c77b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [ebp - 0x2c1]
xor edx, edx
cmp eax, 0x12
cmovne ecx, edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c8], ecx
cmp edx, 8
jb 0x4c7c5d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7c53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4c7ca7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7c9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7ccc
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov eax, dword [ebp - 0x2c8]
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.0063bad7
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x4c7cad
call fcn.0065a824
int3