Function at 0x40cdf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3215
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
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 - 0x68], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
cmp eax, 1
je 0x40ce37
cmp eax, 2
jne 0x40d163
push ecx
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x38]
sub eax, ecx
cmp eax, 0xc
jb 0x40d180
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0xc
cmovae eax, dword [ebp - 0x48]
push str._scripts.ini
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.00407300
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040c220
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x58]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40cec3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
je 0x40d0e3
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x48]
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x34], 8
push eax
cmovae edx, dword [ebp - 0x48]
call fcn.0041a6a0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
cmp edi, eax
je 0x40d0db
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
nop dword [eax + eax]
push 0xf0
call fcn.0047dbfa
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
push 0xe4
push 0
movq qword [eax], xmm0
lea ecx, [eax + 4]
mov dword [eax + 8], 0
lea esi, [eax + 0xc]
push esi
mov dword [ebp - 0x70], ecx
mov dword [ecx], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_struct_AutorunsEntry_.0
call fcn.0047f8f0
add esp, 0x10
mov ecx, esi
call fcn.00405de0
mov eax, dword [ebp - 0x58]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x6c]
xor edx, edx
mov byte [ebp - 4], 3
mov eax, 2
cmp byte [ecx], dl
lea ecx, [esi + 0x60]
cmovne eax, edx
or eax, 0x40000
mov dword [esi + 0xd0], eax
cmp ecx, edi
je 0x40cfa7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40cf9e
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00402740
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.0041fda0
mov dword [ebp - 0x5c], eax
cmp esi, eax
je 0x40cfe8
mov ecx, esi
call fcn.00402b30
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x40d025
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d01b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d185
push ecx
push edx
call fcn.0047dc2a
add esp, 8
mov eax, dword [ebp - 0x64]
lea edx, [esi + 0xb4]
lea ecx, [eax + 2]
mov dword [ebp - 0x5c], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d034
sub eax, dword [ebp - 0x5c]
mov ecx, edx
sar eax, 1
push eax
push dword [ebp - 0x64]
call fcn.00402740
mov ecx, dword [ebp - 0x70]
sub esp, 8
mov eax, esp
xor dl, dl
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax], esi
call fcn.0041bea0
mov eax, dword [ebp - 0x68]
add esp, 8
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 8]
je 0x40d099
mov eax, dword [ebp - 0x58]
mov dword [edx], esi
xor esi, esi
mov dword [edx + 4], eax
add dword [ecx + 4], 8
jmp 0x40d0a6
lea eax, [ebp - 0x18]
push eax
push edx
call fcn.00405ee0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test esi, esi
je 0x40d0cf
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x40d0cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x40d0cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 0x18
cmp edi, dword [ebp - 0x60]
jne 0x40cf10
lea ecx, [ebp - 0x54]
call fcn.00404cf0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x40d119
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d10f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d185
push ecx
push edx
call fcn.0047dc2a
add esp, 8
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp ecx, 8
jb 0x40d163
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d159
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d185
push ecx
push edx
call fcn.0047dc2a
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.0047df69
mov esp, ebp
pop ebp
ret 0xc
call fcn.00402890
call fcn.00482fbf
int3