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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x58], eax
cmp edi, eax
je 0x100429d6
nop dword [eax]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
test ecx, ecx
jne 0x1004230e
lea eax, [edi + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x10]
or esi, 1
cmp dword [eax + 0x14], 0x10
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
jb 0x10042263
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp ecx, 0x7fffffff
ja 0x100429e1
cmp ecx, 0x10
jae 0x100422a7
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x80]
mov esi, 0xf
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x20]
movups xmmword [esp + 0x20], xmm0
mov edi, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
jmp 0x100423a4
mov esi, ecx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x100422bb
mov esi, 0x7fffffff
jmp 0x100422c6
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x24]
call fcn.1001b300
mov edi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
inc eax
push eax
push dword [esp + 0x10]
mov dword [esp + 0x18], edi
push edi
mov dword [esp + 0x2c], edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0xc], eax
mov edx, edi
jmp 0x100423a4
mov eax, 0x7fffffff
or esi, 6
sub eax, ecx
mov dword [esp + 8], esi
cmp eax, 1
jb 0x100429e1
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x1004232f
mov eax, dword [edx]
push 1
push 0x10195404
push ecx
push eax
push edx
push dword [esp + 0x6c]
lea ecx, [esp + 0x74]
call fcn.10047990
cmp dword [edi + 0x1c], 0x10
lea eax, [edi + 8]
mov ecx, dword [eax + 0x10]
jb 0x10042354
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.100290c0
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x80]
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movd edx, xmm1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [esp + 0x20]
movaps xmmword [esp + 0x80], xmm1
movq qword [esp + 0x90], xmm0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
cmovae ecx, edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, 0x7fffffff
ja 0x100429e1
mov dword [esp + 0x4c], 0xf
cmp eax, 0x10
jae 0x100423f9
push 0x10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
jmp 0x10042441
mov edi, eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x1004240d
mov edi, 0x7fffffff
jmp 0x10042418
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x3c]
call fcn.1001b300
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
inc ecx
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x40], eax
push eax
mov dword [esp + 0x58], edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x14]
add esp, 0xc
test al, 4
je 0x10042498
mov ecx, dword [esp + 0x94]
and eax, 0xfffffffb
mov dword [esp + 8], eax
cmp ecx, 0x10
jb 0x10042498
mov eax, dword [esp + 0xc]
inc ecx
mov edx, eax
cmp ecx, 0x1000
jb 0x1004248a
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [esp + 0xc], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100429d0
mov eax, dword [esp + 0xc]
push ecx
push eax
call fcn.10174919
mov eax, dword [esp + 0x10]
add esp, 8
test al, 2
je 0x100424f2
mov ecx, dword [esp + 0x70]
and eax, 0xfffffffd
mov dword [esp + 8], eax
cmp ecx, 0x10
jb 0x100424dd
mov edx, dword [esp + 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100424cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100429d0
push ecx
push edx
call fcn.10174919
mov eax, dword [esp + 0x10]
add esp, 8
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], 0
test al, 1
je 0x10042537
and eax, 0xfffffffe
mov dword [esp + 8], eax
cmp esi, 0x10
jb 0x10042537
mov eax, dword [esp + 0x10]
inc esi
mov ecx, eax
cmp esi, 0x1000
jb 0x1004252d
mov eax, dword [ecx - 4]
add esi, 0x23
sub ecx, eax
mov dword [esp + 0x10], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x100429d0
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.10174919
add esp, 8
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x40]
mov dword [esp + 0x18], ecx
cmp eax, dword [ecx + 4]
je 0x1004287f
cmp byte [ebp + 0x14], 0
jne 0x1004255f
cmp byte [esi + 0x64], 0
mov byte [esp + 0x50], 0
je 0x10042564
mov byte [esp + 0x50], 1
mov ecx, 1
xor edi, edi
cmp dword [esi + 0x38], ecx
cmova ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10042984
nop word [eax + eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x38], 0
mov esi, dword [esp + 8]
jbe 0x100426f9
or esi, 8
mov dword [esp + 8], esi
cmp edi, 0xffffffff
jne 0x100425c3
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0xf
jmp 0x1004271c
lea ecx, [esp + 0x128]
mov dword [esp + 0xc0], 0x10180cf0
mov dword [esp + 0xd0], 0x10180cf8
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [esp + 0xdc]
or esi, 0x20
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xc0], 0x10180cec
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0xbc], eax
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea eax, [esp + 0xd0]
mov dword [esp + 0xd8], 0x10180cb0
push 0x10195000
push eax
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
call fcn.10025310
add esp, 8
lea ecx, [esp + 0xd0]
push edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
lea eax, [esp + 0xd0]
push 0x10195004
push eax
call fcn.10025310
add esp, 8
lea eax, [esp + 0x5c]
lea ecx, [esp + 0xc0]
push eax
call fcn.10065430
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xc0], 0x10180cec
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0xbc], eax
lea ecx, [esp + 0xd8]
call fcn.10025830
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x128]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x5c]
jmp 0x1004271c
or esi, 0x10
mov dword [esp + 0x20], 0
mov dword [esp + 8], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
push dword [esp + 0x48]
cmovae eax, dword [esp + 0x3c]
push eax
push 0
call fcn.10029590
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [esp + 8]
movq qword [esp + 0xb0], xmm0
test al, 0x10
je 0x100427be
mov ecx, dword [esp + 0x34]
and eax, 0xffffffef
mov dword [esp + 8], eax
cmp ecx, 0x10
jb 0x100427a9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004279b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100429d0
push ecx
push edx
call fcn.10174919
mov eax, dword [esp + 0x10]
add esp, 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], 0
test al, 8
je 0x100427ff
mov ecx, dword [esp + 0x70]
and eax, 0xfffffff7
mov dword [esp + 8], eax
cmp ecx, 0x10
jb 0x100427ff
mov edx, dword [esp + 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100427f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100429d0
push ecx
push edx
call fcn.10174919
add esp, 8
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0xa4]
push dword [esp + 0x54]
push esi
push eax
push dword [esp + 0x28]
call fcn.100429f0
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0xb4]
cmp ecx, 0x10
jb 0x10042861
mov edx, dword [esp + 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10042857
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100429d0
push ecx
push edx
call fcn.10174919
add esp, 8
mov esi, dword [esp + 0x14]
mov ecx, 1
inc edi
cmp dword [esi + 0x38], ecx
cmova ecx, dword [esi + 0x38]
cmp edi, ecx
jb 0x10042580
jmp 0x10042984
push dword [esi]
call fcn.1002e1a0
add esp, 4
test al, al
je 0x10042898
cmp byte [ebp + 0x14], 0
mov byte [esp + 0x54], 1
jne 0x1004289d
mov byte [esp + 0x54], 0
push dword [esp + 0x54]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x174]
push dword [esi + 0x38]
push dword [esi]
push eax
call fcn.10109880
mov ecx, dword [ebp + 0x18]
movups xmm0, xmmword [eax]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x78]
push eax
movups xmmword [esp + 0x28], xmm0
call fcn.10001340
mov edi, dword [esp + 0x7c]
cmp byte [edi + 0xd], 0
jne 0x10042909
cmp dword [edi + 0x24], 0x10
lea ecx, [edi + 0x10]
mov edx, dword [ecx + 0x10]
jb 0x100428e8
mov ecx, dword [ecx]
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
push edx
cmovae eax, dword [esp + 0x3c]
push ecx
push dword [esp + 0x50]
push eax
call fcn.100014e0
add esp, 0x10
test eax, eax
jns 0x1004297b
mov eax, dword [ebp + 0x18]
cmp dword [eax + 4], 0x4924924
je 0x100429dc
mov eax, dword [eax]
push 0x38
mov dword [esp + 0x1c], eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
mov edi, eax
add esp, 4
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0x10]
call fcn.10029be0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
push edi
push dword [esp + 0x7c]
mov dword [edi + 0x28], 0xffffffff
push dword [esp + 0x7c]
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov byte [edi + 0x34], 0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.1001b090
mov esi, dword [esp + 0x14]
mov edi, eax
movups xmm0, xmmword [esp + 0x20]
movups xmmword [edi + 0x28], xmm0
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x10
jb 0x100429b6
mov edx, dword [esp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100429ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100429d0
push ecx
push edx
call fcn.10174919
add esp, 8
add esi, 0x68
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x58]
je 0x100429d6
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x14]
jmp 0x10042230
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1001b2d0
call fcn.1001b2e0
int3