Function at 0x41af70
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43fdbd
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x23c], 0
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebx, 1
mov byte [esp + 0x23c], bl
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x103
lea eax, [esp + 0x2d]
push 0
mov byte [esp + 0x244], 2
push eax
mov byte [esp + 0x34], 0
call fcn.0042aa60
push 0x103
lea ecx, [esp + 0x13d]
push 0
push ecx
mov byte [esp + 0x144], 0
call fcn.0042aa60
mov edx, dword [0x44e98c]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x44e98c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 3
call fcn.00420c30
lea edi, [esp + 0x20]
mov byte [esp + 0x23c], 4
call fcn.00403130
mov byte [esp + 0x23c], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b0a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
push esi
push str._sset_e.ini
lea edi, [esp + 0x24]
call fcn.004026d0
push esi
push str._sset.ini
lea edi, [esp + 0x28]
call fcn.004026d0
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [eax - 4], ebx
jle 0x41b0e2
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403440
mov eax, dword [esp + 0x1c]
push 0x444dc4
push eax
call fcn.0042a103
mov edi, dword [esp + 0x20]
add esp, 8
cmp dword [edi - 4], ebx
mov esi, eax
jle 0x41b10d
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403440
mov edi, dword [esp + 0x18]
push 0x444dc8
push edi
call fcn.0042a103
push esi
mov ebp, eax
call fcn.0042a11a
add esp, 0xc
test eax, eax
jne 0x41b1eb
push 0x104
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0042aa60
push esi
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.0042a14e
lea eax, [esp + 0x40]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b156
sub eax, edx
lea ecx, [esp + 0x28]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.0040b660
lea ebx, [esp + 0x14]
call fcn.0041cfb0
mov edi, eax
call fcn.0041d040
mov eax, dword [esp + 0x14]
mov ecx, 1
cmp dword [eax - 0xc], ecx
je 0x41b1d1
cmp dword [eax - 4], ecx
jle 0x41b1a2
mov edx, dword [eax - 0xc]
push edx
mov eax, ebx
push eax
call fcn.0040b550
mov eax, dword [esp + 0x14]
push 0x400
push eax
lea ecx, [esp + 0x134]
call fcn.00424790
add esp, 8
test ebp, ebp
je 0x41b1d1
lea ecx, [esp + 0x12c]
push ecx
push 0x444dd0
push ebp
call fcn.0042a296
add esp, 0xc
push esi
call fcn.0042a11a
add esp, 4
test eax, eax
je 0x41b12b
mov edi, dword [esp + 0x18]
mov ebx, 1
test ebp, ebp
je 0x41b1f8
push ebp
call fcn.0042a429
add esp, 4
push esi
call fcn.0042a429
add esp, 4
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x24]
call fcn.00420c30
lea edi, [esp + 0x20]
mov byte [esp + 0x23c], 5
call fcn.00403130
mov byte [esp + 0x23c], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b24c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
push esi
push 0x444dd4
lea edi, [esp + 0x24]
call fcn.004026d0
push esi
push str._sgame.ini
lea edi, [esp + 0x28]
call fcn.004026d0
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [eax - 4], ebx
jle 0x41b28c
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403440
mov eax, dword [esp + 0x1c]
push 0x444dc4
push eax
call fcn.0042a103
mov edi, dword [esp + 0x20]
add esp, 8
cmp dword [edi - 4], ebx
mov esi, eax
jle 0x41b2b7
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403440
mov edi, dword [esp + 0x18]
push 0x444dc8
push edi
call fcn.0042a103
push esi
mov ebp, eax
call fcn.0042a11a
add esp, 0xc
test eax, eax
jne 0x41b395
push 0x104
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0042aa60
push esi
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.0042a14e
lea eax, [esp + 0x40]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b300
sub eax, edx
lea ecx, [esp + 0x28]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.0040b660
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
je 0x41b380
lea ebx, [esp + 0x14]
call fcn.0041cfb0
mov edi, eax
call fcn.0041d040
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x41b34c
mov eax, dword [eax - 0xc]
push eax
mov ecx, ebx
push ecx
call fcn.0040b550
mov eax, dword [esp + 0x14]
push 0x400
push eax
lea ecx, [esp + 0x134]
call fcn.00424790
add esp, 8
test ebp, ebp
je 0x41b37b
lea edx, [esp + 0x12c]
push edx
push 0x444dd0
push ebp
call fcn.0042a296
add esp, 0xc
mov ebx, 1
push esi
call fcn.0042a11a
add esp, 4
test eax, eax
je 0x41b2d5
mov edi, dword [esp + 0x18]
test ebp, ebp
je 0x41b3a2
push ebp
call fcn.0042a429
add esp, 4
push esi
call fcn.0042a429
add esp, 4
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x24]
call fcn.00420c30
lea edi, [esp + 0x20]
mov byte [esp + 0x23c], 6
call fcn.00403130
mov byte [esp + 0x23c], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b3f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
push esi
push str._sclient_e.ini
lea edi, [esp + 0x24]
call fcn.004026d0
push esi
push str._sclient.ini
lea edi, [esp + 0x28]
call fcn.004026d0
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [eax - 4], ebx
jle 0x41b436
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403440
mov eax, dword [esp + 0x1c]
push 0x444dc4
push eax
call fcn.0042a103
mov edi, dword [esp + 0x20]
add esp, 8
cmp dword [edi - 4], ebx
mov esi, eax
jle 0x41b461
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403440
mov edi, dword [esp + 0x18]
push 0x444dc8
push edi
call fcn.0042a103
push esi
mov ebp, eax
call fcn.0042a11a
add esp, 0xc
test eax, eax
jne 0x41b545
nop
push 0x104
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0042aa60
push esi
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.0042a14e
lea eax, [esp + 0x40]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x41b4b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b4b0
sub eax, edx
lea ecx, [esp + 0x28]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.0040b660
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
je 0x41b530
lea ebx, [esp + 0x14]
call fcn.0041cfb0
mov edi, eax
call fcn.0041d040
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x41b4fc
mov eax, dword [eax - 0xc]
push eax
mov ecx, ebx
push ecx
call fcn.0040b550
mov eax, dword [esp + 0x14]
push 0x400
push eax
lea ecx, [esp + 0x134]
call fcn.00424790
add esp, 8
test ebp, ebp
je 0x41b52b
lea edx, [esp + 0x12c]
push edx
push 0x444dd0
push ebp
call fcn.0042a296
add esp, 0xc
mov ebx, 1
push esi
call fcn.0042a11a
add esp, 4
test eax, eax
je 0x41b480
mov edi, dword [esp + 0x18]
test ebp, ebp
je 0x41b552
push ebp
call fcn.0042a429
add esp, 4
push esi
call fcn.0042a429
add esp, 4
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b58c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x23c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b5b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b5d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b602
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0042825b
add esp, 0x22c
ret