Function at 0x47b140
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68bd31
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x7851cc]
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 - 0x29c], esi
mov dword [ebp - 0x298], edi
mov byte [ebp - 0x291], 1
test esi, esi
je 0x47b6c9
push edi
push esi
call fcn.00652b04
add esp, 8
test eax, eax
jne 0x47b6c9
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 0x47b1c3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0045e220
push 2
push 0x6d6efc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0046a530
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2bc], eax
nop
mov edx, 0x6d5328
lea ecx, [ebp - 0x264]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x47b246
test ax, ax
je 0x47b242
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x47b246
add ecx, 4
add edx, 4
test ax, ax
jne 0x47b220
xor eax, eax
jmp 0x47b24b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b66c
mov ecx, 0x6d6f04
lea eax, [ebp - 0x264]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47b286
test dx, dx
je 0x47b282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47b286
add eax, 4
add ecx, 4
test dx, dx
jne 0x47b260
xor eax, eax
jmp 0x47b28b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b66c
mov ecx, esi
mov dword [ebp - 0x2dc], 0
xor eax, eax
mov dword [ebp - 0x2d8], 7
mov word [ebp - 0x2ec], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b2b5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2ec]
call fcn.0045e220
push 1
push 0x6d5588
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 2
call fcn.0046a530
mov dword [ebp - 0x2c4], 0
xor ecx, ecx
mov dword [ebp - 0x2c0], 0
or edi, 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2d4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2c4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b335
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0046a530
xor ecx, ecx
or edi, 2
mov dword [ebp - 0x298], 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 - 0x2b8], xmm1
movups xmmword [ebp - 0x2fc], xmm0
cmp edx, 8
jb 0x47b3d3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b3ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b6e6
push edx
push ecx
call fcn.0062706d
movups xmm0, xmmword [ebp - 0x2fc]
add esp, 8
movq xmm1, qword [ebp - 0x2b8]
mov edx, dword [ebp - 0x2c0]
movq qword [ebp - 0x18], xmm1
mov byte [ebp - 4], 2
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x47b420
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b416
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b6e6
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp - 0x2d8]
xor eax, eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x47b481
mov ecx, dword [ebp - 0x2ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b477
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b6e6
push edx
push ecx
call fcn.0062706d
add esp, 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x2b0], eax
cmp edi, eax
je 0x47b50c
lea edx, [ebp - 0x264]
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x47b4a0
sub edx, esi
sar edx, 1
mov dword [ebp - 0x2ac], edx
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x47b4bf
mov edx, dword [edi]
mov esi, dword [edi + 0x10]
cmp esi, dword [ebp - 0x2ac]
jne 0x47b4fd
lea ecx, [ebp - 0x264]
test esi, esi
je 0x47b504
mov eax, ecx
sub edx, eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], edx
mov dx, word [edx + ecx]
cmp dx, word [ecx]
jne 0x47b4fd
add ecx, 2
sub esi, 1
je 0x47b504
mov edx, dword [ebp - 0x2b4]
jmp 0x47b4e4
add edi, 0x18
cmp edi, eax
jne 0x47b4b5
cmp edi, eax
jne 0x47b666
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 0x47b652
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0047b140
mov esi, dword [ebp - 0x2a8]
add esp, 8
mov byte [ebp - 4], 1
test esi, esi
je 0x47b63e
mov edi, dword [ebp - 0x2a4]
cmp esi, edi
je 0x47b5d9
nop
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x47b5b9
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x47b5af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b6e6
mov eax, edx
push ecx
push eax
call fcn.0062706d
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 0x47b580
mov esi, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x2a0]
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 0x47b616
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b6e6
push ecx
push esi
call fcn.0062706d
add esp, 8
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 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 0x47b666
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0065310d
add esp, 4
mov edi, dword [ebp - 0x298]
mov esi, dword [ebp - 0x2bc]
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47b68f
mov esi, dword [ebp - 0x29c]
jmp 0x47b210
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [ebp - 0x291]
xor edx, edx
cmp eax, 0x12
cmovne ecx, edx
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x40]
call fcn.00448420
lea ecx, [ebp - 0x28]
call fcn.00448420
mov eax, dword [ebp - 0x29c]
jmp 0x47b6cb
xor al, al
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.0062702c
mov esp, ebp
pop ebp
ret
call fcn.00646804
int3