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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x1038100c]
xor eax, ebp
mov dword [esp + 0xe0], eax
cmp byte [ecx + 0x20], 0
je 0x100cf8bc
mov esi, dword [edi + 0x14]
cmp dword [edi + 0x18], 0xf
jbe 0x100cfa78
mov edi, dword [edi + 4]
jmp 0x100cfa7b
mov dword [esp + 4], ebx
mov eax, dword [edi + 0x1c]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [eax - 0x10], 0x102b4400
mov dword [eax], 0x102b4408
lea esi, [esp + 0x98]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esi], 0x102b4410
mov eax, dword [esi - 0x68]
mov eax, dword [eax + 4]
mov ecx, 0x102b43fc
mov dword [esp + eax + 0x30], ecx
mov eax, dword [esi - 0x68]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esp + eax + 0x2c], ecx
lea ebx, [esp + 0x48]
mov eax, dword [ebx - 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x30], 0x102b4418
mov eax, dword [ebx - 0x18]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x2c], ecx
xor eax, eax
mov dword [ebx - 0xc], eax
mov dword [ebx - 0x10], eax
xor edx, edx
mov eax, dword [ebx - 0x18]
lea esi, [esp + 0x30]
mov ecx, dword [eax + 4]
add ecx, esi
push edx
push ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::init_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x40], 0x102b441c
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 8]
mov dword [esp + eax + 0x3c], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x30], 0x102b4414
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x20]
mov dword [esp + eax + 0x2c], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, 0x102b43fc
mov dword [esp + eax + 0x30], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esp + eax + 0x2c], ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov eax, 0x102b4390
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea ecx, [esp + 0x40]
push dword [esp]
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___int_]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.100033e0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, 0x102b43fc
mov dword [esp + eax + 0x30], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esp + eax + 0x2c], ecx
mov eax, 0x102b4390
mov dword [esi + 0x18], eax
test byte [esi + 0x54], 1
je 0x100cfa1e
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
test eax, eax
je 0x100cfc47
add esi, 0x48
mov ecx, dword [esi]
add eax, dword [ecx]
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jae 0x100cfc55
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x64]
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
mov dword [eax], ecx
mov eax, dword [esp + 0x58]
mov dword [eax], ecx
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [esp + 0x78]
mov dword [eax], ecx
mov dword [esp + 0x80], ecx
and byte [esp + 0x84], 0xfe
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov esi, dword [edi + 0x14]
cmp dword [edi + 0x18], 0xf
jbe 0x100cfa99
mov edi, dword [edi + 4]
jmp 0x100cfa9c
add edi, 4
cmp esi, 0xf
ja 0x100cfb8a
movups xmm0, xmmword [edi]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 0xf
jmp 0x100cfb72
add edi, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
cmp edx, esi
jb 0x100cfbee
lea edx, [eax + esi]
mov dword [esp + 0x28], edx
cmp ecx, 0xf
lea ebx, [esp + 0x18]
jbe 0x100cfac4
mov ebx, dword [esp + 0x18]
lea ecx, [edi + esi]
mov dword [esp], esi
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jbe 0x100cfae0
lea ecx, [ebx + eax]
mov dword [esp], esi
cmp ecx, edi
jae 0x100cfc69
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
inc eax
lea ecx, [ebx + esi]
push eax
push ebx
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, edi
mov edi, dword [esp]
push edi
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
sub esi, edi
jne 0x100cfc2c
mov eax, dword [esp + 0x10]
movsd xmm0, qword [eax + 0x10]
mov ebx, dword [esp + 4]
movsd qword [ebx + 0x10], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebx], xmm0
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov ecx, dword [esp + 8]
mov dword [ecx], 0xf
mov byte [eax], 0
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
jb 0x100cfb72
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, 0x1000
jae 0x100cfc82
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [esp + 0xe0]
xor ecx, ebp
call fcn.1021e470
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], ebx
mov ecx, esi
or ecx, 0xf
mov eax, 0x7fffffff
cmp ecx, eax
cmovae ecx, eax
cmp ecx, 0xfff
mov dword [esp], ecx
jae 0x100cfbd4
lea eax, [ecx + 1]
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ebx, dword [esp + 4]
mov dword [ebx], eax
lea ecx, [esi + 1]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x10], esi
mov eax, dword [esp]
mov dword [ebx + 0x14], eax
jmp 0x100cfb72
lea eax, [ecx + 0x24]
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100cfbb5
sub esp, 0x14
mov al, byte [esp + 0x44]
mov byte [esp + 4], al
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 8], 0
lea ecx, [esp + 0x2c]
call fcn.10225320
lea ecx, [eax + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
add eax, 0x14
mov dword [esp + 8], eax
jmp 0x100cfb1f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp]
add eax, ecx
add ebx, ecx
push esi
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100cfb1f
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
add esi, 0x44
jmp 0x100cf9fd
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x100cfc9a
mov ecx, eax
jmp 0x100cfa14
mov dword [esp], 0
mov ecx, ebx
sub ecx, edi
jbe 0x100cfae0
mov dword [esp], ecx
jmp 0x100cfae0
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x100cfc9a
mov eax, ecx
mov ebx, dword [esp + 4]
jmp 0x100cfb68
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]