Function at 0x417380
Capabilities:
Access peb ldr_data
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43ff51
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x568]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x570], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], ebx
xor ebp, ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
push 0xc6
lea ecx, [esp + 0x4a2]
xor eax, eax
push ebx
mov byte [esp + 0x578], 0xd
push ecx
mov word [esp + 0x4a8], ax
call fcn.0042aa60
add esp, 0xc
push 0xc6
lea eax, [esp + 0x312]
xor edx, edx
push ebx
push eax
mov word [esp + 0x318], dx
call fcn.0042aa60
add esp, 0xc
push 0xc6
lea edx, [esp + 0x3da]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3e0], cx
call fcn.0042aa60
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x570], 0xe
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x570], 0xf
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x68], edi
mov byte [esp + 0x570], 0x10
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x74], eax
mov byte [esp + 0x570], 0x11
cmp dword [esi + 0x28], ebx
jne 0x417598
add eax, 0xfffffff0
mov byte [esp + 0x570], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41751b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x570], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41753f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x570], 0xe
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x570], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x418116
lea ecx, [esp + 0x50]
call fcn.00420c30
lea edi, [esp + 0x68]
mov byte [esp + 0x570], 0x12
call fcn.00403130
mov byte [esp + 0x570], 0x11
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4175da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetChildrenCount]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jle 0x417651
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 0x28]
push ecx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutGetNthChild]
mov eax, dword [esp + 0x28]
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
je 0x417643
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutDeleteElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jg 0x417600
mov eax, dword [esp + 0x24]
add eax, 0xe64
push eax
push ebx
push str.gamecount
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jle 0x417fda
mov dword [esp + 0x20], 1
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x20]
push ecx
push str.name_d
lea edi, [esp + 0x20]
call fcn.004026d0
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, 0xe64
push eax
mov eax, dword [esp + 0x1c]
push 0xc8
lea edx, [esp + 0x4a4]
push edx
push ebx
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push 0x444978
lea esi, [esp + 0xb0]
call fcn.004028d0
mov edi, dword [eax]
add esp, 8
cmp dword [esp + 0x2c], ebx
je 0x4176e6
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov esi, eax
mov eax, dword [esp + 0xa8]
neg esi
sbb esi, esi
not esi
and esi, edi
mov dword [esp + 0x2c], esi
cmp eax, ebx
je 0x41770d
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push 0x44497c
push str.class
push esi
mov dword [esp + 0xb4], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push ebx
push 0x443168
lea esi, [esp + 0xa0]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x40]
add esp, 8
cmp eax, ebx
je 0x41774b
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
mov eax, dword [esp + 0x98]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x38], edi
cmp eax, ebx
je 0x417772
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.game_list_type_g_name_type
push str.class
push edi
mov dword [esp + 0xa4], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push ebx
push 0x4433c8
lea esi, [esp + 0xac]
call fcn.004028d0
mov edx, dword [eax]
mov eax, dword [esp + 0x64]
add esp, 8
mov dword [esp + 0x1c], edx
cmp eax, ebx
je 0x4177b4
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov esi, eax
mov eax, dword [esp + 0xa4]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
cmp eax, ebx
je 0x4177e1
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.icon
push str.class
push esi
mov dword [esp + 0xb0], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push ebx
push edi
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push ebx
push 0x4433c8
lea esi, [esp + 0x8c]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x48]
add esp, 8
cmp eax, ebx
je 0x417828
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
neg eax
sbb eax, eax
not eax
and eax, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x41784d
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov esi, dword [esp + 0x20]
push esi
push str.images_game__d.jpg
lea edi, [esp + 0x20]
mov dword [esp + 0x8c], ebx
call fcn.004026d0
push esi
push str.res_frameimagesgame__d.jpg
lea edi, [esp + 0x4c]
call fcn.004026d0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x78]
push ecx
push edx
push str._s_s
lea edi, [esp + 0x90]
call fcn.004026d0
mov ecx, dword [esp + 0x90]
add esp, 0x1c
lea eax, [esp + 0xbc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4178b8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4178cd
push str..._styles_images_logo.png
mov ebx, 0x19
lea eax, [esp + 0x1c]
call fcn.00403540
xor ebx, ebx
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
mov edi, dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push edx
push 0x4430ec
push esi
call edi
push str.g_img
push str.class
push esi
call edi
mov eax, dword [esp + 0x38]
push 1
push eax
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push ebx
push str.span
lea esi, [esp + 0xb4]
call fcn.004028d0
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
add esp, 8
cmp eax, ebx
je 0x417925
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov esi, eax
mov eax, dword [esp + 0xac]
neg esi
sbb esi, esi
not esi
and esi, edi
mov dword [esp + 0x44], esi
cmp eax, ebx
je 0x41794c
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
lea eax, [esp + 0x49c]
mov dword [esp + 0xac], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417960
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a0]
push ecx
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetElementInnerText16]
mov edi, dword [esp + 0x38]
push 2
push edi
push esi
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
call esi
mov edx, dword [esp + 0x2c]
push ebx
push edx
push edi
call esi
cmp dword [0x44f73c], ebx
je 0x4179ff
mov eax, dword [esp + 0x20]
push eax
push str.gameid_d
lea edi, [esp + 0x20]
call fcn.004026d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 8
add eax, 0xe64
push eax
push ebx
push ecx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [0x44f73c]
jne 0x4179ff
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4179e8
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov esi, dword [esp + 0x44]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
neg eax
sbb eax, eax
not eax
and eax, esi
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x20]
push edx
push str.headcount_d
lea edi, [esp + 0x20]
call fcn.004026d0
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, 0xe64
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jle 0x417f74
mov dword [esp + 0x1c], 1
mov dword [esp + 0x90], eax
jmp 0x417a50
push ebx
push 0x444a54
lea esi, [esp + 0x94]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x5c]
add esp, 8
cmp eax, ebx
je 0x417a76
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov edi, dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
push esi
call edi
neg eax
sbb eax, eax
not eax
and eax, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x417a9d
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push ebx
push 0x444978
lea esi, [esp + 0xa8]
mov dword [esp + 0x94], ebx
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x38]
add esp, 8
cmp eax, ebx
je 0x417aca
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call edi
mov edi, eax
mov eax, dword [esp + 0xa0]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x30], edi
cmp eax, ebx
je 0x417aed
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push 0x444a58
push str.class
push edi
mov dword [esp + 0xac], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push ebx
push 0x443168
lea esi, [esp + 0x9c]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, ebx
je 0x417b2b
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
neg eax
sbb eax, eax
not eax
and eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
cmp eax, ebx
je 0x417b50
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
mov ecx, dword [esp + 0x34]
push str.g_name_types
push str.class
push ecx
mov dword [esp + 0xa0], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push eax
push str.head_d__d
lea edi, [esp + 0x24]
call fcn.004026d0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add esp, 0xc
add eax, 0xe64
push eax
push 0xc8
lea ecx, [esp + 0x314]
push ecx
push ebx
push edx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push 0x4433c8
lea esi, [esp + 0x80]
call fcn.004028d0
mov esi, dword [eax]
add esp, 8
cmp dword [esp + 0x4c], ebx
je 0x417bd7
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
mov eax, dword [esp + 0x78]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x4c], edi
cmp eax, ebx
je 0x417bfb
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.icon_b
push str.class
push edi
mov dword [esp + 0x84], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
mov ecx, dword [esp + 0x34]
push ebx
push ecx
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push ebx
push str.span
lea esi, [esp + 0xa4]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x60]
add esp, 8
cmp eax, ebx
je 0x417c46
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
neg eax
sbb eax, eax
not eax
and eax, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x9c]
cmp eax, ebx
je 0x417c6b
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
lea eax, [esp + 0x30c]
mov dword [esp + 0x9c], ebx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x417c80
mov esi, dword [esp + 0x58]
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x310]
push edx
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetElementInnerText16]
mov edi, dword [esp + 0x34]
push 1
push edi
push esi
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
call esi
mov eax, dword [esp + 0x30]
push 0x7fffffff
push eax
push edi
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push str.item_d_count_d
lea edi, [esp + 0x24]
call fcn.004026d0
mov eax, dword [esp + 0x30]
add esp, 0xc
add eax, 0xe64
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0xb8], ecx
jle 0x417f0e
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc eax
push eax
push ecx
push edx
push str.item_d__d__d
lea edi, [esp + 0x28]
mov dword [esp + 0xc4], eax
call fcn.004026d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add esp, 0x10
add eax, 0xe64
push eax
push 0xc8
lea eax, [esp + 0x3dc]
push eax
push ebx
push ecx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push 0x444a54
lea esi, [esp + 0xb8]
call fcn.004028d0
mov esi, dword [eax]
add esp, 8
cmp ebp, ebx
je 0x417d7e
push ebp
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov ebp, eax
mov eax, dword [esp + 0xb0]
neg ebp
sbb ebp, ebp
not ebp
and ebp, esi
mov dword [esp + 0x88], ebp
cmp eax, ebx
je 0x417da8
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.game_t_version
push str.class
push ebp
mov dword [esp + 0xbc], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push ebx
push 0x4433c8
lea esi, [esp + 0x84]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, ebx
je 0x417de6
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
mov eax, dword [esp + 0x7c]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x64], edi
cmp eax, ebx
je 0x417e0a
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push str.icon_x
push str.class
push edi
mov dword [esp + 0x88], ebx
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push 0x7fffffff
push ebp
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push ebx
push str.span
lea esi, [esp + 0x88]
call fcn.004028d0
mov esi, dword [eax]
mov eax, dword [esp + 0x68]
add esp, 8
cmp eax, ebx
je 0x417e55
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
push esi
call dword [sym.imp.HTMLayout.dll_HTMLayout_UseElement]
mov edi, eax
mov eax, dword [esp + 0x80]
neg edi
sbb edi, edi
not edi
and edi, esi
mov dword [esp + 0x60], edi
cmp eax, ebx
je 0x417e7c
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
lea eax, [esp + 0x3d4]
mov dword [esp + 0x80], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417e90
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3d8]
push edx
push edi
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetElementInnerText16]
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push 0x7fffffff
push ebp
push edi
call esi
mov eax, dword [esp + 0x30]
push 0x7fffffff
push eax
push ebp
call esi
lea esi, [esp + 0x70]
lea eax, [esp + 0x88]
call fcn.00402890
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x417efa
dec dword [eax]
cmp dword [eax], ebx
jne 0x417efa
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004284c0
add esp, 4
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0xb4]
cmp eax, dword [esp + 0xb8]
jl 0x417d10
lea esi, [esp + 0x6c]
lea eax, [esp + 0x30]
call fcn.00402890
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
push 0x7fffffff
push esi
push edx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x417f5e
dec dword [eax]
cmp dword [eax], ebx
jne 0x417f5e
mov edx, dword [esp + 0x6c]
push edx
call fcn.004284c0
add esp, 4
mov dword [esp + 0x6c], ebx
mov eax, 1
add dword [esp + 0x1c], eax
sub dword [esp + 0x90], eax
jne 0x417a50
lea esi, [esp + 0x28]
lea eax, [esp + 0x2c]
call fcn.00402890
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x2c]
dec eax
push eax
push ecx
push edx
call dword [sym.imp.HTMLayout.dll_HTMLayoutInsertElement]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x417fb9
dec dword [eax]
cmp dword [eax], ebx
jne 0x417fb9
mov eax, dword [esp + 0x28]
push eax
call fcn.004284c0
add esp, 4
mov dword [esp + 0x28], ebx
mov eax, 1
add dword [esp + 0x20], eax
sub dword [esp + 0x50], eax
jne 0x417680
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x417fda
push esi
call fcn.00419c20
mov byte [esp + 0x570], 0x10
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418002
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x570], 0xf
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41802a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x570], 0xe
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418052
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x570], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41807a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayout_UnuseElement]
cmp eax, ebx
je 0x41808b
push eax
call esi
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x418096
push eax
call esi
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4180a1
push eax
call esi
cmp ebp, ebx
je 0x4180a8
push ebp
call esi
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4180b3
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x4180be
push eax
call esi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4180c9
push eax
call esi
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x4180d4
push eax
call esi
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4180df
push eax
call esi
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4180ea
push eax
call esi
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4180f5
push eax
call esi
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x418100
push eax
call esi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x41810b
push eax
call esi
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x418116
push eax
call esi
mov ecx, dword [esp + 0x568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.0042825b
add esp, 0x560
ret