Function at 0x408080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f140
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x44e98c
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ebx
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 1
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x44]
push eax
push 0x44370c
lea edi, [esp + 0x24]
call fcn.004026d0
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x330]
add esp, 8
lea ecx, [esp + 0x44]
push ecx
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetChildrenCount]
xor ebp, ebp
cmp dword [esp + 0x44], ebx
jle 0x40832d
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x330]
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetNthChild]
mov eax, dword [esp + 0x24]
push eax
mov edi, eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x38], 3
je 0x40820d
lea ecx, [esp + 0x28]
push ecx
push 0x4431d4
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetAttributeByName]
mov edx, dword [esp + 0x28]
cmp edx, ebx
jne 0x40819b
xor eax, eax
jmp 0x4081af
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4081a0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x1c]
call fcn.00403540
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40821d
mov eax, dword [esp + 0x18]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4081f6
test dx, dx
je 0x4081f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4081f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4081d0
xor eax, eax
jmp 0x4081fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x408227
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
xor ebx, ebx
inc ebp
cmp ebp, dword [esp + 0x44]
jl 0x408139
jmp 0x40832d
push 0x80004005
call fcn.00403880
lea edx, [esp + 0x40]
push edx
push str.class
push esi
mov dword [esp + 0x4c], 0
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetAttributeByName]
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x40824c
xor eax, eax
jmp 0x408260
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408251
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00403540
mov edi, dword [esp + 0x14]
mov ecx, str.im_list_li_zx_test_popup
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40829d
test dx, dx
je 0x408299
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40829d
add eax, 4
add ecx, 4
test dx, dx
jne 0x408277
xor eax, eax
jmp 0x4082a2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40831c
mov ecx, str.im_list_li_test_popup
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4082d8
test dx, dx
je 0x4082d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4082d8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4082b2
xor eax, eax
jmp 0x4082dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40831c
lea eax, [esp + 0x14]
push eax
mov ecx, str.im_list_li_lx_zx_test_popup
call fcn.00408810
add esp, 4
test al, al
jne 0x408312
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.im_list_li_lx_test_popup
call fcn.00408810
add esp, 4
test al, al
je 0x408324
mov dword [esp + 0x20], 0
jmp 0x408324
mov dword [esp + 0x20], 1
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
xor ebx, ebx
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], bl
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 0x408376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
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 0x40839e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8