Function at 0x415050
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3e8e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], 0
jne 0x41534e
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.00405980
add esp, 4
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4150c0
mov esi, dword [ebp - 0x1c]
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00402740
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x28]
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
mov edx, edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x14], 1
call fcn.0041be10
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x60]
mov edx, dword [eax]
call fcn.004059f0
mov edi, eax
add esi, 0x48
add esp, 8
cmp esi, edi
je 0x415156
mov ecx, esi
call fcn.00402b30
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x60]
call fcn.00402b30
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00402b30
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x415174
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c220
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x28]
or edi, 0xffffffff
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4151ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x41520d
mov eax, dword [ebp - 0x1c]
push esi
push 0x4c9cbc
or dword [eax + 0xd0], 1
lea eax, [ebp - 0x60]
push eax
call fcn.004157c0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x4151fd
mov ecx, esi
call fcn.00402b30
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x60]
call fcn.00402b30
or edi, 0xffffffff
jmp 0x4152ac
mov dword [ebp - 0x14], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41521e
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405020
push 0x22
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00415660
mov eax, dword [ebp - 0x14]
sub esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, esp
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x28], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
test edx, edx
je 0x41525c
lock inc dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], edx
mov dl, byte [ebp - 0x21]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x28]
call fcn.0041bea0
mov ecx, dword [ebp - 0x1c]
add esp, 8
add ecx, 0x60
cmp ecx, esi
je 0x41528e
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x415287
mov esi, dword [esi]
push eax
push esi
call fcn.00402740
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4152ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
mov esi, dword [ebp - 0x1c]
lea eax, [edx + 2]
mov dword [ebp - 0x2c], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4152c0
sub edx, dword [ebp - 0x2c]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0xb4]
call fcn.00402740
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 4]
xor ecx, ecx
cmp byte [eax], cl
mov eax, dword [ebp - 0x20]
sete cl
lea ecx, [ecx*2 + 0x2000]
or dword [esi + 0xd0], ecx
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x415315
mov edx, dword [ebp - 0x18]
mov dword [eax], esi
xor esi, esi
mov dword [eax + 4], edx
add dword [ecx + 4], 8
jmp 0x415322
lea edx, [ebp - 0x1c]
push edx
push eax
call fcn.00405ee0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41534b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41534b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41534b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx + 0xc]
cmp dword [edi], 0
je 0x41538b
mov esi, dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [esi]
sbb edx, dword [esi + 4]
test edx, edx
jb 0x41538b
ja 0x41536e
cmp eax, dword [edi]
jb 0x41538b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4153a8
mov eax, dword [ecx]
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esi], eax
mov dword [esi + 4], edx
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.0047df69
mov esp, ebp
pop ebp
ret 0xc
call fcn.0047c562
int3