Function at 0x40e570
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x46800c]
mov edi, edx
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x38], eax
mov byte [ecx + 4], 0
call fcn.0040d4a0
cmp edi, 0x31c
je 0x40e880
cmp edi, 0x488
jne 0x40eb1b
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x20]
push 8
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcff
mov edx, dword [esi + 0x10]
mov dword [esp + 4], esi
cmp byte [edx + 0x4e], 0
je 0x40e5ec
cmp byte [edx + 0x4c], 0
je 0x40e5ec
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
bswap ecx
bswap eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x20]
mov eax, 0xffffff00
mov ebx, 0xffffff00
mov dword [esp + 8], edx
and eax, esi
mov dword [esp + 0x1c], eax
mov eax, 0x488
push eax
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, 0x488
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
and ebx, esi
mov esi, dword [esp + 4]
jne 0x40e648
mov ecx, dword [esp + 8]
lea edx, [esp + 0x1c]
call fcn.0040fe30
test al, al
je 0x40fcf6
mov ebx, dword [esp + 0x1c]
or dword [edi], ebx
cmp ebx, 0x1000000
jne 0x40fcf6
movq xmm0, qword [esp + 0x20]
mov edx, edi
add edx, 8
movq qword [edi], xmm0
mov ecx, dword [esi + 0x10]
push 0x480
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcf6
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
mov esi, dword [esp + 4]
call ebx
test eax, eax
je 0x40e6b4
cmp byte [eax + 4], 0
je 0x40fcf6
movzx eax, word [eax + 0x10]
cmp eax, 0x8002
jne 0x40fcf6
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x4e], 0
je 0x40e869
cmp byte [eax + 0x4c], 0
je 0x40e869
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
bswap ecx
bswap eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
bswap ecx
bswap eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x118]
mov edx, dword [edi + eax + 0x11c]
bswap edx
bswap ecx
mov dword [edi + eax + 0x118], edx
mov dword [edi + eax + 0x11c], ecx
add eax, 8
jne 0x40e6f0
mov eax, dword [edi + 0x118]
mov ecx, dword [edi + 0x11c]
bswap ecx
bswap eax
mov dword [edi + 0x118], ecx
mov dword [edi + 0x11c], eax
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
bswap ecx
bswap eax
mov dword [edi + 0x120], ecx
mov dword [edi + 0x124], eax
mov eax, dword [edi + 0x128]
mov ecx, dword [edi + 0x12c]
bswap ecx
bswap eax
mov dword [edi + 0x128], ecx
mov dword [edi + 0x12c], eax
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x134]
bswap ecx
bswap eax
mov dword [edi + 0x130], ecx
mov dword [edi + 0x134], eax
mov eax, dword [edi + 0x138]
mov ecx, dword [edi + 0x13c]
bswap ecx
bswap eax
mov dword [edi + 0x138], ecx
mov dword [edi + 0x13c], eax
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x240]
mov edx, dword [edi + eax + 0x244]
bswap edx
bswap ecx
mov dword [edi + eax + 0x240], edx
mov dword [edi + eax + 0x244], ecx
add eax, 8
jne 0x40e7a6
mov eax, dword [edi + 0x244]
bswap eax
mov dword [edi + 0x244], eax
mov eax, 0xfffffe00
mov ecx, dword [edi + eax + 0x450]
mov edx, dword [edi + eax + 0x454]
bswap edx
bswap ecx
mov dword [edi + eax + 0x450], edx
mov dword [edi + eax + 0x454], ecx
mov ecx, dword [edi + eax + 0x448]
mov edx, dword [edi + eax + 0x44c]
bswap edx
bswap ecx
mov dword [edi + eax + 0x448], edx
mov dword [edi + eax + 0x44c], ecx
add eax, 0x10
jne 0x40e7de
mov eax, dword [edi + 0x450]
mov ecx, dword [edi + 0x454]
bswap ecx
bswap eax
mov dword [edi + 0x450], ecx
mov dword [edi + 0x454], eax
mov eax, dword [edi + 0x448]
mov ecx, dword [edi + 0x44c]
bswap ecx
bswap eax
mov dword [edi + 0x448], ecx
mov dword [edi + 0x44c], eax
mov eax, dword [edi + 0x468]
bswap eax
mov dword [edi + 0x468], eax
cmp dword [edi + 4], 0
mov eax, dword [edi]
mov dword [esi + 0xc], eax
jne 0x40fcf6
mov dword [esi + 8], edi
jmp 0x40f2af
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x20]
push 8
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcff
mov dword [esp + 4], esi
mov esi, dword [esi + 0x10]
cmp byte [esi + 0x4e], 0
je 0x40e8c0
cmp byte [esi + 0x4c], 0
je 0x40e8c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
bswap ecx
bswap eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov edi, 0x31c
push edi
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0xffffff00
and eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jne 0x40e904
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.0040fe30
test al, al
je 0x40f00c
mov eax, dword [esp + 0x1c]
or dword [ebx], eax
cmp eax, 0x80000000
jne 0x40f00c
movq xmm0, qword [esp + 0x20]
mov esi, dword [esp + 4]
lea edi, [ebx + 8]
mov edx, edi
movq qword [ebx], xmm0
mov ecx, dword [esi + 0x10]
push 0x314
call fcn.0040fd20
add esp, 4
test al, al
je 0x40f00c
mov esi, dword [esi + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
test eax, eax
je 0x40e96f
cmp byte [eax + 4], 0
je 0x40f00c
movzx eax, word [eax + 0x10]
cmp eax, 0x8003
jne 0x40f00c
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
cmp byte [esi + 0x4e], 0
je 0x40ea65
cmp byte [esi + 0x4c], 0
je 0x40ea65
mov eax, 0xfffffef8
mov ecx, dword [ebx + eax + 0x110]
mov edx, dword [ebx + eax + 0x114]
bswap edx
bswap ecx
mov dword [ebx + eax + 0x110], edx
mov dword [ebx + eax + 0x114], ecx
add eax, 8
jne 0x40e98f
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x114]
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
bswap eax
bswap ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
lea ecx, [ebx + 0x124]
mov eax, dword [ebx + 0x118]
bswap eax
mov dword [ebx + 0x118], eax
mov eax, 0x20
cmp byte [esi + 0x4e], 0
mov dword [esp + 8], eax
je 0x40ea16
cmp byte [esi + 0x4d], 0
lea edi, [ecx - 8]
je 0x40ea22
mov eax, edx
shl eax, 4
lea ebx, [ebx + eax + 0x124]
mov eax, dword [ecx]
jmp 0x40ea38
mov eax, edx
shl eax, 4
lea edi, [ebx + eax + 0x11c]
movq xmm0, qword [ecx]
mov eax, dword [ecx - 8]
mov ebx, dword [ecx - 4]
mov dword [ecx + 4], ebx
mov dword [ecx], eax
movq qword [ecx - 8], xmm0
mov ebx, ecx
mov esi, dword [ebx + 4]
bswap eax
inc edx
add ecx, 0x10
bswap esi
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0xc]
mov eax, dword [edi]
mov esi, dword [edi + 4]
bswap esi
bswap eax
mov dword [edi], esi
mov dword [edi + 4], eax
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
dec eax
jne 0x40e9f3
push 0x390
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, dword [ebx]
xor ecx, ecx
test eax, 0x80000002
setne cl
lea esi, [ecx + ecx*2]
mov ecx, esi
or esi, 0x400004
or ecx, 0x400000
test eax, 0x80000004
mov eax, dword [ebx + 0x110]
cmove esi, ecx
mov dword [edi], esi
mov dword [edi + 4], eax
lea eax, [edi + 8]
push 0x108
push dword [esp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, ebx
lea eax, [edi + 0x110]
add ecx, 0x11c
push 0x200
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x118]
mov ecx, edi
mov edx, ecx
mov ecx, 0x1e
mov dword [edi + 0x310], eax
mov eax, dword [ebx + 0x114]
mov dword [edi + 0x314], eax
add edi, 0x318
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 8], edx
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40f2af
lea edx, [esp + 0x1c]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
call fcn.0040fe30
test al, al
je 0x40fcff
mov dword [esp + 4], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
cmp esi, 0x100000
jne 0x40f012
mov esi, 0x4d0
push esi
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 4]
mov edx, ebx
mov ecx, dword [eax + 0x10]
push esi
call fcn.0040fd20
add esp, 4
test al, al
je 0x40f00c
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x10]
cmp byte [edx + 0x4e], 0
je 0x40eba2
cmp byte [edx + 0x4c], 0
je 0x40eba2
mov eax, dword [ebx + 0x30]
bswap eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x30]
mov ecx, eax
mov dword [esp + 0x18], eax
and ecx, 0xffffff00
cmp ecx, 0x100000
jne 0x40f00c
mov ecx, 0xfffffe60
movq xmm0, qword [ebx + ecx + 0x4a0]
movq xmm1, qword [ebx + ecx + 0x4a8]
movq qword [ebx + ecx + 0x4a8], xmm0
movq qword [ebx + ecx + 0x4a0], xmm1
add ecx, 0x10
jne 0x40ebc2
cmp byte [edx + 0x4e], 0
mov esi, dword [esp + 4]
je 0x40efb8
cmp byte [edx + 0x4c], 0
je 0x40efb8
mov ecx, dword [ebx]
mov dword [esp + 8], edx
mov edx, dword [ebx + 4]
bswap edx
bswap ecx
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
bswap edx
bswap ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
bswap edx
bswap ecx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
bswap edx
bswap ecx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
bswap edx
bswap ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
bswap edx
bswap ecx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebx + 0x34]
bswap ecx
mov dword [ebx + 0x34], ecx
rol word [ebx + 0x38], 8
rol word [ebx + 0x3a], 8
rol word [ebx + 0x3c], 8
rol word [ebx + 0x3e], 8
rol word [ebx + 0x42], 8
mov ecx, dword [ebx + 0x44]
bswap ecx
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
bswap edx
bswap ecx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
bswap edx
bswap ecx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
bswap edx
bswap ecx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], ecx
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0x64]
bswap edx
bswap ecx
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x64], ecx
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x6c]
bswap edx
bswap ecx
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], ecx
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
bswap edx
bswap ecx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], ecx
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x7c]
bswap edx
bswap ecx
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x7c], ecx
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x84]
bswap edx
bswap ecx
mov dword [ebx + 0x80], edx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x8c]
bswap edx
bswap ecx
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], ecx
mov ecx, dword [ebx + 0x90]
mov edx, dword [ebx + 0x94]
bswap edx
bswap ecx
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x94], ecx
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x9c]
bswap edx
bswap ecx
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x9c], ecx
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
bswap edx
bswap ecx
mov dword [ebx + 0xa0], edx
mov dword [ebx + 0xa4], ecx
mov ecx, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xac]
bswap edx
bswap ecx
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0xac], ecx
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ebx + 0xb4]
bswap edx
bswap ecx
mov dword [ebx + 0xb0], edx
mov dword [ebx + 0xb4], ecx
mov ecx, dword [ebx + 0xb8]
mov edx, dword [ebx + 0xbc]
bswap edx
bswap ecx
mov dword [ebx + 0xb8], edx
mov dword [ebx + 0xbc], ecx
mov ecx, dword [ebx + 0xc0]
mov edx, dword [ebx + 0xc4]
bswap edx
bswap ecx
mov dword [ebx + 0xc0], edx
mov dword [ebx + 0xc4], ecx
mov ecx, dword [ebx + 0xc8]
mov edx, dword [ebx + 0xcc]
bswap edx
bswap ecx
mov dword [ebx + 0xc8], edx
mov dword [ebx + 0xcc], ecx
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xd4]
bswap edx
bswap ecx
mov dword [ebx + 0xd0], edx
mov dword [ebx + 0xd4], ecx
mov ecx, dword [ebx + 0xd8]
mov edx, dword [ebx + 0xdc]
bswap edx
bswap ecx
mov dword [ebx + 0xd8], edx
mov dword [ebx + 0xdc], ecx
mov ecx, dword [ebx + 0xe0]
mov edx, dword [ebx + 0xe4]
bswap edx
bswap ecx
mov dword [ebx + 0xe0], edx
mov dword [ebx + 0xe4], ecx
mov ecx, dword [ebx + 0xe8]
mov edx, dword [ebx + 0xec]
bswap edx
bswap ecx
mov dword [ebx + 0xe8], edx
mov dword [ebx + 0xec], ecx
mov ecx, dword [ebx + 0xf0]
mov edx, dword [ebx + 0xf4]
bswap edx
bswap ecx
mov dword [ebx + 0xf0], edx
mov dword [ebx + 0xf4], ecx
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xfc]
bswap edx
bswap ecx
mov dword [ebx + 0xf8], edx
mov dword [ebx + 0xfc], ecx
mov ecx, 0xfffffe60
mov edx, dword [ebx + ecx + 0x4a8]
mov esi, dword [ebx + ecx + 0x4ac]
bswap esi
bswap edx
mov dword [ebx + ecx + 0x4a8], esi
mov dword [ebx + ecx + 0x4ac], edx
mov edx, dword [ebx + ecx + 0x4a0]
mov esi, dword [ebx + ecx + 0x4a4]
bswap esi
bswap edx
mov dword [ebx + ecx + 0x4a0], esi
mov dword [ebx + ecx + 0x4a4], edx
add ecx, 0x10
jne 0x40eec3
mov ecx, dword [ebx + 0x4a0]
mov edx, dword [ebx + 0x4a4]
mov esi, dword [esp + 4]
bswap edx
bswap ecx
mov dword [ebx + 0x4a0], edx
mov dword [ebx + 0x4a4], ecx
mov ecx, dword [ebx + 0x4a8]
mov edx, dword [ebx + 0x4ac]
bswap edx
bswap ecx
mov dword [ebx + 0x4a8], edx
mov dword [ebx + 0x4ac], ecx
mov ecx, dword [ebx + 0x4b0]
mov edx, dword [ebx + 0x4b4]
bswap edx
bswap ecx
mov dword [ebx + 0x4b0], edx
mov dword [ebx + 0x4b4], ecx
mov ecx, dword [ebx + 0x4b8]
mov edx, dword [ebx + 0x4bc]
bswap edx
bswap ecx
mov dword [ebx + 0x4b8], edx
mov dword [ebx + 0x4bc], ecx
mov ecx, dword [ebx + 0x4c0]
mov edx, dword [ebx + 0x4c4]
bswap edx
bswap ecx
mov dword [ebx + 0x4c0], edx
mov dword [ebx + 0x4c4], ecx
mov edx, dword [ebx + 0x4cc]
mov ecx, dword [ebx + 0x4c8]
bswap edx
bswap ecx
mov dword [ebx + 0x4c8], edx
mov edx, dword [esp + 8]
mov dword [ebx + 0x4cc], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
cmp byte [edx + 0x4e], 0
je 0x40f299
mov ecx, dword [edx + 0x48]
test ecx, ecx
je 0x40f299
lea esi, [esp + 0x20]
push esi
mov ebx, edx
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add eax, dword [esi]
adc ecx, dword [esi + 4]
mov edx, eax
mov esi, dword [esp + 4]
add eax, 0xfffffb30
sar edx, 0x1f
xor edx, ecx
mov edx, ebx
mov ebx, 0xfffffb2f
cmove ebx, eax
add edi, ebx
jmp 0x40f29f
push ebx
jmp 0x40fcf7
mov eax, dword [esp + 4]
lea edx, [esp + 0x18]
mov ecx, dword [eax + 0x10]
push 4
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcff
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x4e], 0
je 0x40f04c
cmp byte [ecx + 0x4c], 0
je 0x40f04c
mov eax, dword [esp + 0x18]
bswap eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
mov eax, ebx
and eax, 0xffffff00
je 0x40f061
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x40f070
test bl, 0x40
jne 0x40f2f0
or ebx, esi
mov dword [esp + 0x18], ebx
cmp esi, 0x3fffff
jg 0x40f0a1
cmp esi, 0x7ffff
jg 0x40f2ba
cmp esi, 0x10000
je 0x40f57d
cmp esi, 0x40000
je 0x40f4d3
jmp 0x40fcff
cmp esi, 0x1fffffff
jg 0x40f2d7
cmp esi, 0x400000
je 0x40f7c8
cmp esi, 0x10000000
jne 0x40fcff
cmp edi, 0x248
jne 0x40fcff
mov eax, 0x248
push eax
mov esi, ecx
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, 0x248
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], ebx
lea edx, [edi + 4]
mov ecx, esi
push 0x244
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcf6
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
je 0x40f145
cmp byte [eax + 4], 0
je 0x40fcf6
movzx eax, word [eax + 0x10]
cmp eax, 0x8001
jne 0x40fcf6
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x4e], 0
je 0x40fcee
cmp byte [eax + 0x4c], 0
je 0x40fcee
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x108]
mov edx, dword [edi + eax + 0x10c]
bswap edx
bswap ecx
mov dword [edi + eax + 0x108], edx
mov dword [edi + eax + 0x10c], ecx
add eax, 8
jne 0x40f165
mov eax, dword [edi + 0x108]
mov ecx, dword [edi + 0x10c]
bswap ecx
bswap eax
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x114]
bswap ecx
bswap eax
mov dword [edi + 0x110], ecx
mov dword [edi + 0x114], eax
mov eax, dword [edi + 0x118]
mov ecx, dword [edi + 0x11c]
bswap ecx
bswap eax
mov dword [edi + 0x118], ecx
mov dword [edi + 0x11c], eax
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
bswap ecx
bswap eax
mov dword [edi + 0x120], ecx
mov dword [edi + 0x124], eax
mov eax, dword [edi + 0x128]
mov ecx, dword [edi + 0x12c]
bswap ecx
bswap eax
mov dword [edi + 0x128], ecx
mov dword [edi + 0x12c], eax
mov eax, dword [edi + 0x130]
mov ecx, dword [edi + 0x134]
bswap ecx
bswap eax
mov dword [edi + 0x130], ecx
mov dword [edi + 0x134], eax
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x238]
mov edx, dword [edi + eax + 0x23c]
bswap edx
bswap ecx
mov dword [edi + eax + 0x238], edx
mov dword [edi + eax + 0x23c], ecx
add eax, 8
jne 0x40f237
mov eax, dword [edi + 0x238]
mov ecx, dword [edi + 0x23c]
bswap ecx
bswap eax
mov dword [edi + 0x238], ecx
mov dword [edi + 0x23c], eax
mov eax, dword [edi + 0x240]
mov ecx, dword [edi + 0x244]
bswap ecx
bswap eax
mov dword [edi + 0x240], ecx
mov dword [edi + 0x244], eax
jmp 0x40fcee
add edi, 0xfffffb2f
mov ecx, edx
mov edx, edi
call fcn.0040ffc0
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov byte [esi + 4], 1
mov bl, 1
jmp 0x40fd01
cmp esi, 0x80000
je 0x40f4d3
cmp esi, 0x100000
je 0x40eb51
jmp 0x40fcff
cmp esi, 0x20000000
je 0x40f94e
cmp esi, 0x40000000
je 0x40f305
jmp 0x40fcff
mov eax, 0x40000000
and ebx, 0xbfffffbf
or ebx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
cmp edi, 0x170
jne 0x40fcff
mov eax, 0x170
push eax
mov esi, ecx
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, 0x170
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], ebx
lea edx, [edi + 4]
mov ecx, esi
push 0x16c
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcf6
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
je 0x40f381
cmp byte [eax + 4], 0
je 0x40fcf6
cmp word [eax + 0x10], 5
jne 0x40fcf6
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x4e], 0
je 0x40fcee
cmp byte [eax + 0x4c], 0
je 0x40fcee
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
bswap eax
bswap ecx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, dword [edi + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
bswap eax
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
bswap eax
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x18]
bswap eax
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x1c]
bswap eax
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x20]
bswap eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x24]
bswap eax
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x28]
bswap eax
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x2c]
bswap eax
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
bswap eax
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x34]
bswap eax
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x38]
bswap eax
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x3c]
bswap eax
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x40]
bswap eax
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x44]
bswap eax
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
bswap ecx
bswap eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], eax
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x150]
mov edx, dword [edi + eax + 0x154]
bswap edx
bswap ecx
mov dword [edi + eax + 0x150], edx
mov dword [edi + eax + 0x154], ecx
add eax, 8
jne 0x40f439
mov eax, dword [edi + 0x150]
mov ecx, dword [edi + 0x154]
bswap eax
bswap ecx
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], ecx
mov eax, dword [edi + 0x158]
bswap eax
mov dword [edi + 0x158], eax
mov eax, dword [edi + 0x15c]
bswap eax
mov dword [edi + 0x15c], eax
mov eax, dword [edi + 0x160]
bswap eax
mov dword [edi + 0x160], eax
mov eax, dword [edi + 0x164]
bswap eax
mov dword [edi + 0x164], eax
mov eax, dword [edi + 0x168]
bswap eax
mov dword [edi + 0x168], eax
mov eax, dword [edi + 0x16c]
bswap eax
mov dword [edi + 0x16c], eax
jmp 0x40fcee
cmp edi, 0x258
jne 0x40fcff
mov eax, 0x258
push eax
mov dword [esp + 0xc], ecx
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, 0x258
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword [edi], ebx
lea edx, [edi + 4]
push 0x254
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcf6
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, dword [esp + 8]
call ebx
test eax, eax
je 0x40fb75
cmp byte [eax + 4], 0
je 0x40fcf6
movzx eax, word [eax + 0x10]
cmp esi, 0x80000
je 0x40fb67
cmp esi, 0x40000
jne 0x40fcf6
cmp ax, 1
je 0x40fb75
jmp 0x40fcf6
mov eax, 0x2cc
push eax
mov dword [esp + 0xc], ecx
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, 0x2cc
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword [esi], ebx
mov dword [esp + 0xc], esi
lea edx, [esi + 4]
push 0x2c8
call fcn.0040fd20
add esp, 4
test al, al
je 0x40f945
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
je 0x40f606
cmp byte [eax + 4], 0
je 0x40f945
movzx eax, word [eax + 0x10]
cmp ax, 0xa
ja 0x40f945
mov ecx, 0x601
bt ecx, eax
jae 0x40f945
mov esi, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ebx, dword [esi + 0x10]
cmp byte [ebx + 0x4e], 0
je 0x40f77b
cmp byte [ebx + 0x4c], 0
je 0x40f77b
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
bswap eax
bswap ecx
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov eax, dword [edx + 0xc]
bswap eax
mov dword [edx + 0xc], eax
mov eax, dword [edx + 0x10]
bswap eax
mov dword [edx + 0x10], eax
mov eax, dword [edx + 0x14]
bswap eax
mov dword [edx + 0x14], eax
mov eax, dword [edx + 0x18]
bswap eax
mov dword [edx + 0x18], eax
mov eax, dword [edx + 0x1c]
bswap eax
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x20]
bswap eax
mov dword [edx + 0x20], eax
mov eax, dword [edx + 0x24]
bswap eax
mov dword [edx + 0x24], eax
mov eax, dword [edx + 0x28]
bswap eax
mov dword [edx + 0x28], eax
mov eax, dword [edx + 0x2c]
bswap eax
mov dword [edx + 0x2c], eax
mov eax, dword [edx + 0x30]
bswap eax
mov dword [edx + 0x30], eax
mov eax, dword [edx + 0x34]
bswap eax
mov dword [edx + 0x34], eax
mov eax, dword [edx + 0x88]
bswap eax
mov dword [edx + 0x88], eax
mov eax, dword [edx + 0x8c]
bswap eax
mov dword [edx + 0x8c], eax
mov eax, dword [edx + 0x90]
bswap eax
mov dword [edx + 0x90], eax
mov eax, dword [edx + 0x94]
bswap eax
mov dword [edx + 0x94], eax
mov eax, dword [edx + 0x98]
bswap eax
mov dword [edx + 0x98], eax
mov eax, dword [edx + 0x9c]
bswap eax
mov dword [edx + 0x9c], eax
mov eax, dword [edx + 0xa0]
bswap eax
mov dword [edx + 0xa0], eax
mov eax, dword [edx + 0xa4]
bswap eax
mov dword [edx + 0xa4], eax
mov eax, dword [edx + 0xa8]
bswap eax
mov dword [edx + 0xa8], eax
mov eax, dword [edx + 0xac]
bswap eax
mov dword [edx + 0xac], eax
mov eax, dword [edx + 0xb0]
bswap eax
mov dword [edx + 0xb0], eax
mov eax, dword [edx + 0xb4]
bswap eax
mov dword [edx + 0xb4], eax
mov eax, dword [edx + 0xb8]
bswap eax
mov dword [edx + 0xb8], eax
mov eax, dword [edx + 0xbc]
bswap eax
mov dword [edx + 0xbc], eax
mov eax, dword [edx + 0xc0]
bswap eax
mov dword [edx + 0xc0], eax
mov eax, dword [edx + 0xc4]
bswap eax
mov dword [edx + 0xc4], eax
mov eax, dword [edx + 0xc8]
bswap eax
mov dword [edx + 0xc8], eax
mov dword [esi + 8], edx
cmp byte [ebx + 0x4e], 0
je 0x40fb5a
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x40fb5a
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add eax, dword [esi]
adc ecx, dword [esi + 4]
mov edx, eax
mov esi, dword [esp + 4]
add eax, 0xfffffd34
sar edx, 0x1f
xor edx, ecx
mov edx, 0xfffffd33
cmove edx, eax
add edi, edx
jmp 0x40fb60
cmp edi, 0x390
jne 0x40fcff
mov eax, 0x390
push eax
mov edi, ecx
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, 0x390
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], ebx
mov dword [esp + 0xc], esi
lea edx, [esi + 4]
mov ecx, edi
push 0x38c
call fcn.0040fd20
add esp, 4
test al, al
je 0x40f945
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
je 0x40f848
cmp byte [eax + 4], 0
je 0x40f945
cmp word [eax + 0x10], 0xc
jne 0x40f945
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x4e], 0
je 0x40fcee
cmp byte [eax + 0x4c], 0
je 0x40fcee
mov dword [esp + 0x10], eax
mov eax, 0xfffffef8
mov ecx, dword [edi + eax + 0x110]
mov edx, dword [edi + eax + 0x114]
bswap edx
bswap ecx
mov dword [edi + eax + 0x110], edx
mov dword [edi + eax + 0x114], ecx
add eax, 8
jne 0x40f870
mov eax, dword [edi + 4]
lea ecx, [edi + 0x118]
xor edx, edx
mov ebx, 0x20
bswap eax
mov dword [edi + 4], eax
mov eax, dword [edi + 0x314]
bswap eax
mov dword [edi + 0x314], eax
mov eax, dword [edi + 0x310]
bswap eax
mov dword [edi + 0x310], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x4e], 0
mov dword [esp + 8], ebx
je 0x40f8ed
cmp byte [eax + 0x4d], 0
lea ebx, [ecx - 8]
je 0x40f8f9
mov eax, edx
shl eax, 4
lea edi, [edi + eax + 0x118]
mov eax, dword [ecx]
jmp 0x40f90f
mov eax, edx
shl eax, 4
lea ebx, [edi + eax + 0x110]
movq xmm0, qword [ecx]
mov eax, dword [ecx - 8]
mov edi, dword [ecx - 4]
mov dword [ecx + 4], edi
mov dword [ecx], eax
movq qword [ecx - 8], xmm0
mov edi, ecx
mov esi, dword [edi + 4]
bswap eax
inc edx
add ecx, 0x10
bswap esi
mov dword [edi], esi
mov dword [edi + 4], eax
mov edi, dword [esp + 0xc]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
bswap esi
bswap eax
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov ebx, dword [esp + 8]
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x10]
dec ebx
jne 0x40f8ca
jmp 0x40fcee
push dword [esp + 0xc]
jmp 0x40fcf7
cmp edi, 0x3ec
jne 0x40fcff
mov eax, 0x3ec
push eax
mov esi, ecx
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, 0x3ec
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], ebx
lea edx, [edi + 4]
mov ecx, esi
push 0x3e8
call fcn.0040fd20
add esp, 4
test al, al
je 0x40fcf6
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
je 0x40f9ca
cmp byte [eax + 4], 0
je 0x40fcf6
cmp word [eax + 0x10], 3
jne 0x40fcf6
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x4e], 0
je 0x40fcee
cmp byte [eax + 0x4c], 0
je 0x40fcee
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
pxor xmm0, xmm0
bswap eax
bswap ecx
mov dword [edi + 4], eax
mov eax, 0xffffffe0
mov dword [edi + 8], ecx
movdqu xmm1, xmmword [edi + eax*4 + 0x8c]
movdqa xmm2, xmm1
punpcklbw xmm1, xmm0
punpckhbw xmm2, xmm0
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm1, xmm2
movdqu xmmword [edi + eax*4 + 0x8c], xmm1
add eax, 4
jne 0x40f9fe
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x90]
bswap eax
bswap ecx
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], ecx
mov eax, dword [edi + 0x94]
bswap eax
mov dword [edi + 0x94], eax
mov eax, dword [edi + 0x98]
bswap eax
mov dword [edi + 0x98], eax
mov eax, dword [edi + 0x9c]
bswap eax
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 0xa0]
bswap eax
mov dword [edi + 0xa0], eax
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x1a4]
mov edx, dword [edi + eax + 0x1a8]
bswap edx
bswap ecx
mov dword [edi + eax + 0x1a4], edx
mov dword [edi + eax + 0x1a8], ecx
add eax, 8
jne 0x40fa92
mov eax, dword [edi + 0x1a8]
bswap eax
mov dword [edi + 0x1a8], eax
mov eax, 0xfffffe00
mov ecx, dword [edi + eax + 0x3b4]
mov edx, dword [edi + eax + 0x3b8]
bswap edx
bswap ecx
mov dword [edi + eax + 0x3b4], edx
mov dword [edi + eax + 0x3b8], ecx
mov ecx, dword [edi + eax + 0x3ac]
mov edx, dword [edi + eax + 0x3b0]
bswap edx
bswap ecx
mov dword [edi + eax + 0x3ac], edx
mov dword [edi + eax + 0x3b0], ecx
add eax, 0x10
jne 0x40faca
mov eax, dword [edi + 0x3b4]
mov ecx, dword [edi + 0x3b8]
bswap ecx
bswap eax
mov dword [edi + 0x3b4], ecx
mov dword [edi + 0x3b8], eax
mov eax, dword [edi + 0x3ac]
mov ecx, dword [edi + 0x3b0]
bswap ecx
bswap eax
mov dword [edi + 0x3ac], ecx
mov dword [edi + 0x3b0], eax
mov eax, dword [edi + 0x3cc]
bswap eax
mov dword [edi + 0x3cc], eax
jmp 0x40fcee
add edi, 0xfffffd33
mov ecx, ebx
jmp 0x40f2a1
movzx eax, ax
cmp eax, 0x8004
jne 0x40fcf6
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x4e], 0
je 0x40fcee
cmp byte [eax + 0x4c], 0
je 0x40fcee
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x108]
mov edx, dword [edi + eax + 0x10c]
bswap edx
bswap ecx
mov dword [edi + eax + 0x108], edx
mov dword [edi + eax + 0x10c], ecx
add eax, 8
jne 0x40fb95
mov eax, dword [edi + 0x108]
mov ecx, dword [edi + 0x10c]
bswap ecx
bswap eax
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x114]
bswap ecx
bswap eax
mov dword [edi + 0x110], ecx
mov dword [edi + 0x114], eax
mov eax, dword [edi + 0x118]
bswap eax
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
bswap eax
mov dword [edi + 0x124], eax
mov eax, dword [edi + 0x11c]
bswap eax
mov dword [edi + 0x11c], eax
mov eax, dword [edi + 0x128]
bswap eax
mov dword [edi + 0x128], eax
mov eax, dword [edi + 0x120]
bswap eax
mov dword [edi + 0x120], eax
mov eax, dword [edi + 0x12c]
bswap eax
mov dword [edi + 0x12c], eax
mov eax, dword [edi + 0x130]
bswap eax
mov dword [edi + 0x130], eax
mov eax, dword [edi + 0x138]
mov ecx, dword [edi + 0x13c]
bswap ecx
bswap eax
mov dword [edi + 0x138], ecx
mov dword [edi + 0x13c], eax
mov eax, dword [edi + 0x140]
mov ecx, dword [edi + 0x144]
bswap ecx
bswap eax
mov dword [edi + 0x140], ecx
mov dword [edi + 0x144], eax
mov eax, dword [edi + 0x148]
bswap eax
mov dword [edi + 0x148], eax
mov eax, dword [edi + 0x14c]
bswap eax
mov dword [edi + 0x14c], eax
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x250]
mov edx, dword [edi + eax + 0x254]
bswap edx
bswap ecx
mov dword [edi + eax + 0x250], edx
mov dword [edi + eax + 0x254], ecx
add eax, 8
jne 0x40fcad
mov eax, dword [edi + 0x250]
mov ecx, dword [edi + 0x254]
bswap eax
bswap ecx
mov dword [edi + 0x250], eax
mov dword [edi + 0x254], ecx
mov dword [esi + 8], edi
jmp 0x40f2a8
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.0044d830
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret