Function at 0x40b700
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efae8
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.0048b0f0
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 0x40b769
mov eax, esi
mov ecx, dword [eax + 8]
test ecx, ecx
mov esi, dword [esi]
je 0x40b764
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, dword [ebx + 0x50]
jne 0x40b753
lea ecx, [ebx + 0x4c]
call fcn.00438370
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.0040b1f0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40b7c5
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 0x40b7a4
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 0x40b9b7
cmp edi, eax
jae 0x40b7eb
mov edx, dword [ebx + 0x44]
lea ecx, [edi + edi*2]
lea eax, [edx + ecx*4]
jmp 0x40b7ed
xor eax, eax
mov esi, dword [eax + 4]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 2
call fcn.004df219
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 0x40b864
cmp eax, dword [esi]
jne 0x40b864
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b89a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x40b879
jmp fcn.0041aab0
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 0x40b8cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, dword [ebx + 0x40]
jae 0x40b8dd
mov ecx, dword [ebx + 0x44]
lea eax, [edi + edi*2]
lea eax, [ecx + eax*4]
jmp 0x40b8df
xor eax, eax
lea edx, [ebp - 0x24]
push edx
push eax
call fcn.0040aa80
add esp, 8
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x40b8f8
mov dword [ebp - 0x28], eax
jmp 0x40b938
cmp dword [eax + 0xc], 6
je 0x40b909
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.004090f0
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.00424050
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040a2d0
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 0x40b959
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 0x40b9aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [ebp - 4], 1
inc edi
jmp 0x40b7ce
mov dword [ebp - 4], 1
inc edi
jmp 0x40b7ce
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 0x40b9d8
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