Function at 0x40b5a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.LoadAdResource.
mov ebx, ecx
push 4
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.0048cfe0
lea edi, [ebx + 8]
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x38], edi
call fcn.00401300
mov eax, dword [ebx + 0x50]
mov esi, dword [eax]
cmp esi, eax
mov dword [ebp - 4], 0
je 0x40b609
mov eax, esi
mov ecx, dword [eax + 8]
test ecx, ecx
mov esi, dword [esi]
je 0x40b604
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, dword [ebx + 0x50]
jne 0x40b5f3
lea ecx, [ebx + 0x4c]
call fcn.00425170
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.0040b090
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40b665
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x14]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 1
xor edi, edi
mov eax, dword [ebx + 0x40]
cmp edi, eax
mov dword [ebp - 0x14], edi
jae 0x40b857
cmp edi, eax
jae 0x40b68b
mov edx, dword [ebx + 0x44]
lea ecx, [edi + edi*2]
lea eax, [edx + ecx*4]
jmp 0x40b68d
xor eax, eax
mov esi, dword [eax + 4]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 2
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x18]
push str._s_d_
push ecx
mov byte [ebp - 4], 3
call fcn.00401c40
add esp, 0x10
push str.Config.ini
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401e30
add esp, 0xc
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov byte [ebp - 4], 4
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40b704
cmp eax, dword [esi]
jne 0x40b704
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b73a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x40b719
jmp fcn.0041bff0
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x14]
add eax, 0x10
push 0x80
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b76d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, dword [ebx + 0x40]
jae 0x40b77d
mov ecx, dword [ebx + 0x44]
lea eax, [edi + edi*2]
lea eax, [ecx + eax*4]
jmp 0x40b77f
xor eax, eax
lea edx, [ebp - 0x24]
push edx
push eax
call fcn.0040a920
add esp, 8
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x40b798
mov dword [ebp - 0x28], eax
jmp 0x40b7d8
cmp dword [eax + 0xc], 6
je 0x40b7a9
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.00408fc0
mov edi, dword [ebx + 0x50]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0x4c]
lea eax, [ebp - 0x30]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004251d0
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040a170
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 0x14]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b7f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b84a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [ebp - 4], 1
inc edi
jmp 0x40b66e
mov dword [ebp - 4], 1
inc edi
jmp 0x40b66e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret