Function at 0x10031040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100456d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [0x100555f8]
mov ecx, 0x100555f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x10046c94
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], edi
call fcn.10001f40
mov eax, dword [esi + 0x10]
cmp eax, edi
mov byte [esp + 0x2c], 1
je 0x100310a9
push eax
lea ecx, [esp + 0x20]
push 0x1004af90
push ecx
call fcn.10005730
add esp, 0xc
push 0x10046c94
lea ecx, [esp + 0x1c]
call fcn.10001f40
mov eax, dword [esi + 0xc]
cmp eax, edi
mov byte [esp + 0x2c], 2
je 0x100310d6
push eax
lea edx, [esp + 0x1c]
push 0x1004af90
push edx
call fcn.10005730
add esp, 0xc
mov eax, dword [0x100555f8]
mov ecx, 0x100555f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._rule_type__s__id__s__name__s__ttl__d__last_check__d__impr_type__s__
push ecx
mov byte [esp + 0x4c], 3
call fcn.10005730
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add esp, 0x20
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.10008db0
mov edx, dword [esi + 0x1c]
cmp dword [edx - 0xc], edi
je 0x10031162
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str._p_link__tag__s__tag__style__s__style__text____CDATA__s_____text___p_link_
push eax
call fcn.10005730
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
add esp, 0x14
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.10008db0
mov ecx, dword [esi + 0x28]
cmp dword [ecx - 0xc], edi
je 0x10031197
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._r_link__tag__s__tag__style__s__style__text____CDATA__s_____text___r_link_
push edx
call fcn.10005730
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
add esp, 0x14
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.10008db0
mov ecx, dword [esi + 0x38]
cmp ecx, edi
jne 0x100311a2
xor eax, eax
jmp 0x100311aa
mov eax, dword [esi + 0x3c]
sub eax, ecx
sar eax, 5
cmp eax, edi
jbe 0x100311ff
mov ebp, eax
mov bl, 4
mov eax, dword [esi + 0x38]
lea ecx, [edi + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10030060
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.10008db0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100311f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0x20
dec ebp
jne 0x100311b2
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1003121c
mov ecx, dword [esi + 0x4c]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jbe 0x10031273
xor edi, edi
mov ebp, eax
mov bl, 5
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax]
lea eax, [esp + 0x20]
push eax
call fcn.100301f0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.10008db0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003126d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0x34
dec ebp
jne 0x10031226
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10031290
mov ecx, dword [esi + 0x5c]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jbe 0x100312ed
xor edi, edi
mov ebp, eax
mov bl, 6
lea ebx, [ebx]
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10030ce0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.10008db0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100312e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0x24
dec ebp
jne 0x100312a0
push str.__rule_
call fcn.100363e4
add esp, 4
push eax
push str.__rule_
lea ecx, [esp + 0x18]
call fcn.10008db0
push str.amp_
push 0x10046cdc
lea ecx, [esp + 0x18]
call fcn.1000f7a0
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
add ebp, 0xfffffff0
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x10031347
cmp eax, dword [ebp]
jne 0x10031347
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1003137c
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x1003135c
call fcn.10001440
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 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 esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100313a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100313cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100313ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x2c], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003140e
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4