Function at 0x406ed0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597b6c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x6031c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x22c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x290], xmm0
lea ecx, [ebp - 0x228]
call fcn.00402220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
cmp dword [ecx + 0x18], 0
jne 0x406f4d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004023e0
jmp 0x407302
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x288]
call fcn.00438347
mov byte [ebp - 4], 1
push 0
push 0x40
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x288]
call fcn.004389c6
lea ecx, [ebp - 0x288]
call fcn.00409b10
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx]
add ecx, 0x5c
call fcn.00405f30
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x4072d6
mov edx, dword [ebp - 0x224]
mov eax, dword [edx]
add eax, 0x5c
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x248]
call fcn.00405ff0
mov edx, dword [eax]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
je 0x406fef
jmp 0x406fa7
mov edx, dword [ebp - 0x21c]
add edx, 0x10
push edx
lea ecx, [ebp - 0x220]
call fcn.00401fd0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x607c40
call fcn.004150c0
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0xc], 0
je 0x40704c
push 0
lea ecx, [ebp - 0x220]
call fcn.00402790
push eax
call fcn.0056bd68
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.004023e0
jmp 0x406fa7
push 0
lea ecx, [ebp - 0x220]
call fcn.00402790
push eax
call fcn.0056bd68
test eax, eax
je 0x40706f
mov dword [ebp - 0x234], 1
jmp 0x407079
mov dword [ebp - 0x234], 0
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
je 0x4070e3
push 0x16f
push 0x5aa254
lea ecx, [ebp - 0x254]
call fcn.00402040
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x250]
call fcn.00402790
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00433d50
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
call fcn.004023e0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
push 0x5aa284
lea edx, [ebp - 0x228]
push edx
call fcn.004056d0
add esp, 0x10
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x238]
mov eax, dword [ecx + 0x38]
or eax, dword [edx + 0x3c]
je 0x407142
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], eax
jmp 0x40715a
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], edx
push 0x1001
lea ecx, [ebp - 0x228]
call fcn.00402790
push eax
lea ecx, [ebp - 0x2a4]
call fcn.0043830b
mov byte [ebp - 4], 4
push 0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [eax + 0x30]
push edx
lea ecx, [ebp - 0x288]
call fcn.00438c11
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x23c]
mov eax, dword [ecx + 0x38]
or eax, dword [edx + 0x3c]
je 0x40720a
mov ecx, dword [ebp - 0x224]
add ecx, 0x28
mov dword [ebp - 0x258], ecx
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x288]
push ecx
mov ecx, dword [ebp - 0x258]
call fcn.0042f5e0
jmp 0x407239
mov edx, dword [ebp - 0x224]
add edx, 0x28
mov dword [ebp - 0x25c], edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x288]
push edx
mov ecx, dword [ebp - 0x25c]
call fcn.0042f410
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x274], ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x270], eax
lea ecx, [ebp - 0x274]
push ecx
push 0
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x2a4]
call fcn.0043869b
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x260], edx
lea ecx, [ebp - 0x228]
call fcn.00402790
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a4]
call fcn.004383cb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.004023e0
jmp 0x406fa7
lea ecx, [ebp - 0x288]
call fcn.0043869b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.004383cb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004023e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a45e
mov esp, ebp
pop ebp
ret 4