Function at 0x418eb0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a327c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00484f51
xor esi, esi
mov dword [esp + 0x250], esi
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 1
call fcn.0047ef6a
mov edi, vtable.CFileException.0
mov dword [esp + 0x2c], edi
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
push esi
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x258], 2
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0xffffffff
call fcn.004042c0
mov eax, dword [0x4d0a68]
push eax
lea ecx, [esp + 0x2c]
push str._sKS.TMP
push ecx
mov byte [esp + 0x25c], 3
call fcn.00403140
mov ebx, dword [esp + 0x34]
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea edx, [esp + 0x2c]
push edx
push 0x1001
push ebx
lea ecx, [esp + 0x24]
call fcn.00485255
test eax, eax
jne 0x418fed
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x250], 1
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418fb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x250], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418fd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x250], 0xffffffff
call fcn.00484f90
xor eax, eax
jmp 0x419193
push 0x104
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [esp + 0x40]
push ecx
call fcn.0046ab7c
add esp, 4
lea edx, [eax + eax + 2]
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edx
call fcn.00484c9e
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x20]
call fcn.00484c9e
mov eax, dword [ebp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00484c9e
mov al, byte [ebp + 0x1c]
cmp al, 7
mov byte [esp + 0x13], al
jne 0x41905d
mov byte [esp + 0x13], 5
push 1
lea edx, [esp + 0x17]
push edx
lea ecx, [esp + 0x20]
call fcn.00484c9e
push 1
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], 0x33
call fcn.00484c9e
mov ecx, dword [0x4d0978]
mov eax, dword [ebp + 0x538]
add eax, ecx
cdq
sub eax, edx
push 1
lea ecx, [esp + 0x17]
sar eax, 1
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], al
call fcn.00484c9e
mov edi, dword [ebp + 4]
cmp edi, esi
je 0x419121
mov eax, edi
mov esi, dword [eax + 8]
mov edi, dword [edi]
push 4
lea edx, [esi + 4]
push edx
lea ecx, [esp + 0x20]
call fcn.00484c9e
push 4
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
call fcn.00484c9e
push 4
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00484c9e
cmp byte [ebp + 0x1c], 5
lea ecx, [esp + 0x18]
push 4
je 0x4190f6
lea edx, [esi + 0x10]
push edx
jmp 0x4190fa
lea eax, [esi + 0x1c]
push eax
call fcn.00484c9e
push 1
lea ecx, [esi + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00484c9e
push 4
add esi, 0x18
push esi
lea ecx, [esp + 0x20]
call fcn.00484c9e
test edi, edi
jne 0x4190b0
lea ecx, [esp + 0x18]
call fcn.00484eef
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x250], 1
mov dword [esp + 0x2c], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x250], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41917a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x250], 0xffffffff
call fcn.00484f90
mov eax, 1
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret