Function at 0x405b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43e7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
xor ebx, ebx
mov dword [esp + 0x84], ebx
cmp dword [edi + 0x328], ebx
jne 0x405b72
lea esi, [esp + 0x90]
call fcn.00404340
xor eax, eax
jmp 0x405ff7
mov eax, dword [edi + 0x2f4]
mov eax, dword [eax]
mov esi, dword [edi + 0x2dc]
add edi, 0x2dc
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov ebp, dword [edi + 0x18]
mov eax, dword [edi]
cmp esi, ebx
je 0x405b9f
cmp esi, eax
je 0x405ba4
call fcn.00429770
cmp dword [esp + 0x34], ebp
je 0x405be6
cmp esi, ebx
jne 0x405be2
call fcn.00429770
xor esi, esi
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x18]
jne 0x405bc3
call fcn.00429770
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x10]
cmp edx, dword [esp + 0x90]
je 0x405b5f
lea esi, [esp + 0x30]
call fcn.00409dd0
mov esi, dword [esp + 0x30]
jmp 0x405b92
mov esi, dword [esi]
jmp 0x405bb5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x84], 6
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x84], 7
mov eax, dword [esp + 0x90]
push eax
push 0x44370c
lea edi, [esp + 0x1c]
call fcn.004026d0
push ebx
push 0x443168
lea esi, [esp + 0x38]
call fcn.004028d0
mov esi, dword [eax]
mov ebx, dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
add esp, 0x10
push esi
call ebx
mov ebp, eax
mov eax, dword [esp + 0x28]
neg ebp
sbb ebp, ebp
not ebp
and ebp, esi
mov dword [esp + 0x2c], ebp
test eax, eax
je 0x405c74
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
test dword [esp + 0x90], 0x80000000
je 0x405c88
push str.im_list_li
jmp 0x405c8d
push str.im_list_li_test_popup
push str.class
push ebp
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
mov ecx, dword [esp + 0x14]
push ecx
push 0x4431d4
push ebp
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push 0
push 0x443168
lea esi, [esp + 0x2c]
call fcn.004028d0
mov esi, dword [eax]
add esp, 8
push esi
call ebx
mov edi, eax
mov eax, dword [esp + 0x24]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x28], edi
test eax, eax
je 0x405cdf
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.im_list_li_left
push str.class
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push 0
push 0x4433c8
lea esi, [esp + 0x28]
call fcn.004028d0
mov eax, dword [eax]
add esp, 8
push eax
mov dword [esp + 0x28], eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x24]
mov dword [esp + 0x24], esi
test eax, eax
je 0x405d2b
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str..._styles_images_logo.gif
push 0x4430ec
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push 0x7fffffff
push edi
push esi
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
call esi
push 0x7fffffff
push ebp
push edi
call esi
push 0
push 0x443168
lea esi, [esp + 0x24]
call fcn.004028d0
mov edi, dword [eax]
add esp, 8
push edi
call ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
neg esi
sbb esi, esi
not esi
and esi, edi
mov dword [esp + 0x20], esi
test eax, eax
je 0x405d89
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.im_list_li_right
push str.class
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
mov edx, dword [esp + 0x98]
test edx, edx
je 0x405dc8
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405db0
sub eax, edi
sar eax, 1
push eax
push edx
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetElementInnerText16]
push 0x7fffffff
push ebp
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push 0
push 0x443168
lea esi, [esp + 0x20]
call fcn.004028d0
mov esi, dword [eax]
add esp, 8
push esi
call ebx
mov edi, eax
mov eax, dword [esp + 0x18]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x405e0a
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.im_list_li_xiaoxi
push str.class
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push 0
push 0x4433c8
lea esi, [esp + 0x38]
call fcn.004028d0
mov eax, dword [eax]
add esp, 8
push eax
mov dword [esp + 0x1c], eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x30]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
test eax, eax
je 0x405e56
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.images_im_xiao_bg.gif
push 0x4430ec
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push 0x7fffffff
push edi
push esi
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
call esi
push 0x7fffffff
push ebp
push edi
call esi
mov edi, dword [esp + 0x8c]
mov edx, dword [edi + 0x368]
cmp edx, dword [esp + 0x90]
jne 0x405ea0
mov eax, dword [edi + 0x328]
push 0
push eax
jmp 0x405eac
mov ecx, dword [edi + 0x328]
push 0x7fffffff
push ecx
push ebp
call esi
lea eax, [edi + 0x338]
push eax
mov dword [esp + 0x90], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x48], esp
push edx
lea edi, [esp + 0xac]
call fcn.00406010
push ecx
mov dword [esp + 0x4c], esp
mov esi, esp
push ebp
call ebx
neg eax
sbb eax, eax
not eax
and eax, ebp
lea edi, [esp + 0x78]
mov dword [esi], eax
call fcn.0040a8f0
add esp, 0x1c
mov esi, eax
mov edi, dword [esi]
push edi
call ebx
neg eax
sbb eax, eax
not eax
and eax, edi
mov dword [esp + 0x40], eax
lea eax, [esp + 0x44]
lea edi, [esi + 4]
push eax
mov byte [esp + 0x88], 9
call fcn.00406010
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x8c], 0xa
call fcn.004088d0
lea esi, [esp + 0x44]
call fcn.00404340
mov eax, dword [esp + 0x40]
mov edi, dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
test eax, eax
je 0x405f56
push eax
call edi
lea esi, [esp + 0x60]
mov dword [esp + 0x40], 0
call fcn.00404340
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x405f72
push eax
call edi
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x84], 6
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 0x405fa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405fb3
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405fbe
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405fc9
push eax
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405fd4
push eax
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405fdf
push eax
call edi
test ebp, ebp
je 0x405fe6
push ebp
call edi
lea esi, [esp + 0x90]
call fcn.00404340
mov eax, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x1c