Function at 0x406920
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5987ec
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x6041c0]
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 0x40699d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004023e0
jmp 0x406d52
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x288]
call fcn.00439067
mov byte [ebp - 4], 1
push 0
push 0x40
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x288]
call fcn.004396e6
lea ecx, [ebp - 0x288]
call fcn.00409620
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx]
add ecx, 0x5c
call fcn.00405b80
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x406d26
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.00405c40
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 0x406a3f
jmp 0x4069f7
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, 0x608c40
call fcn.00415c40
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0xc], 0
je 0x406a9c
push 0
lea ecx, [ebp - 0x220]
call fcn.00402790
push eax
call fcn.0056ca98
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.004023e0
jmp 0x4069f7
push 0
lea ecx, [ebp - 0x220]
call fcn.00402790
push eax
call fcn.0056ca98
test eax, eax
je 0x406abf
mov dword [ebp - 0x234], 1
jmp 0x406ac9
mov dword [ebp - 0x234], 0
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
je 0x406b33
push 0x164
push 0x5ab1fc
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.004348f0
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 0x5ab22c
lea edx, [ebp - 0x228]
push edx
call fcn.00405320
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 0x406b92
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 0x406baa
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.0043902b
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.00439931
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 0x406c5a
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.00430180
jmp 0x406c89
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.0042ffb0
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.004393bb
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.004390eb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.004023e0
jmp 0x4069f7
lea ecx, [ebp - 0x288]
call fcn.004393bb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.004390eb
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.0056b18c
mov esp, ebp
pop ebp
ret 4