Function at 0x418220
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523c65
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x58e5a4]
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 - 0x64], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
cmp eax, 1
je 0x41826a
cmp eax, 2
jne 0x418695
push ecx
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0042e130
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x38]
sub eax, ecx
cmp eax, 0xc
jb 0x4186b2
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 - 0x68]
lea ecx, [ebp - 0x30]
call fcn.004109a0
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.00417530
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 0x4182f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
je 0x418615
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.0042c900
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
cmp edi, eax
je 0x41860d
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
nop
push 0xf0
call fcn.004d2477
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 - 0x74], ecx
mov dword [ecx], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_struct_AutorunsEntry_.0
call fcn.004d52d0
xor eax, eax
mov dword [esi], 0
mov word [esi], ax
xorps xmm0, xmm0
mov dword [esi + 0x18], eax
add esp, 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x2c], 7
mov dword [esi + 0x44], 7
mov dword [esi + 0x5c], 7
mov dword [esi + 0x74], 7
movq qword [esi + 0x78], xmm0
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], eax
mov eax, dword [ebp - 0x58]
movlpd qword [ebp - 0x18], xmm0
mov dword [esi + 0x98], 7
mov dword [esi + 0xb0], 7
mov dword [esi + 0xc8], 7
mov dword [esi + 0xd4], 0xffffffff
mov dword [esi + 0xd8], 0xffffffff
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 0x418496
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41848d
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00408af0
mov edx, edi
lea ecx, [ebp - 0x8c]
call fcn.00434ca0
mov dword [ebp - 0x5c], eax
cmp esi, eax
je 0x41851a
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4184ea
mov ecx, dword [esi]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x4184dd
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x70], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4186b7
mov ecx, dword [ebp - 0x70]
push edx
push ecx
call fcn.004d24a7
mov eax, dword [ebp - 0x5c]
add esp, 8
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], cx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x418557
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41854d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186b7
push edx
push ecx
call fcn.004d24a7
add esp, 8
mov eax, dword [ebp - 0x60]
lea edx, [esi + 0xb4]
lea ecx, [eax + 2]
mov dword [ebp - 0x5c], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418566
sub eax, dword [ebp - 0x5c]
mov ecx, edx
sar eax, 1
push eax
push dword [ebp - 0x60]
call fcn.00408af0
mov ecx, dword [ebp - 0x74]
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.0042e240
mov eax, dword [ebp - 0x64]
add esp, 8
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4185cb
mov edx, dword [ebp - 0x58]
mov dword [eax], esi
xor esi, esi
mov dword [eax + 4], edx
add dword [ecx + 4], 8
jmp 0x4185d8
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.0040da80
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test esi, esi
je 0x418601
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x418601
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x418601
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 0x18
cmp edi, dword [ebp - 0x68]
jne 0x418340
lea ecx, [ebp - 0x54]
call fcn.0040bb70
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x41864b
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418641
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186b7
push edx
push ecx
call fcn.004d24a7
add esp, 8
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x418695
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41868b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186b7
push edx
push ecx
call fcn.004d24a7
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.004d2a60
mov esp, ebp
pop ebp
ret 0xc
call fcn.00408560
call fcn.004e0791
int3