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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov edx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x1038000c]
xor eax, ebp
mov dword [esp + 0xf0], eax
cmp esi, 0x505
jne 0x10019eff
mov eax, dword [edx]
mov esi, 0x505
cmp dword [eax + 0x1fbc], 0x8252
jne 0x10019eff
mov ecx, dword [eax + 0x1fcc]
cmp byte [ecx + 0x344], 0
je 0x10019eff
mov byte [eax + 0x1fbb], 1
mov word [eax + 0x1fb9], 0x301
mov byte [eax + 0x1d01], 0
mov eax, dword [0x1039f0a4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xc], 0
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x50]
mov dword [eax - 0x10], 0x102c3444
mov dword [eax], 0x102c344c
lea esi, [esp + 0xa8]
mov ecx, esi
mov dword [esp + 0x14], edx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esi], 0x102c3458
mov eax, dword [esi - 0x68]
mov eax, dword [eax + 4]
mov ecx, 0x102c3454
mov dword [esp + eax + 0x40], ecx
mov eax, dword [esi - 0x68]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esp + eax + 0x3c], ecx
lea edi, [esp + 0x58]
mov eax, dword [edi - 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x40], 0x102c3460
mov eax, dword [edi - 0x18]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x3c], ecx
xor ebx, ebx
mov dword [edi - 0xc], ebx
mov dword [edi - 0x10], ebx
mov eax, dword [edi - 0x18]
lea esi, [esp + 0x40]
mov ecx, dword [eax + 4]
add ecx, esi
push ebx
push edi
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 + 0x50], 0x102c3464
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 8]
mov dword [esp + eax + 0x4c], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x40], 0x102c345c
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x20]
mov dword [esp + eax + 0x3c], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, 0x102c3454
mov dword [esp + eax + 0x40], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esp + eax + 0x3c], ecx
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esi + 0x18], 0x102c3470
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
push str.Error:
lea eax, [esp + 0x54]
push eax
call fcn.102134b0
add esp, 8
mov esi, eax
push 0x1032a224
push eax
call fcn.102134b0
add esp, 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov edx, dword [esi + eax + 0x14]
mov dword [esp + 0xc], edx
movsd xmm0, qword [esi + eax + 0x20]
movsd qword [esp + 0x18], xmm0
mov cl, byte [esi + eax + 0x40]
mov byte [esp + 7], cl
mov ecx, edx
and ecx, 0xfffff1ff
or ecx, 0x800
mov dword [esi + eax + 0x14], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
or dword [esi + eax + 0x14], 4
lea edi, [esp + 0x28]
push ebx
push 8
push edi
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
add esp, 0xc
mov eax, dword [edi + 0xc]
mov dword [esp + 8], eax
mov ecx, dword [edi]
mov edi, dword [edi + 8]
mov eax, dword [esi]
mov ebx, dword [eax + 4]
add ebx, esi
call dword [section..00cfg]
push dword [esp + 8]
push edi
push ebx
call ecx
add esp, 0xc
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov byte [esi + eax + 0x40], 0x30
mov ebx, 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_]
mov ecx, esi
push dword [esp + 0x10]
call ebx
mov eax, dword [esi]
mov eax, dword [eax + 4]
movzx ecx, word [esp + 0xc]
mov dword [esi + eax + 0x14], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
movsd xmm0, qword [esp + 0x18]
movsd qword [esi + eax + 0x20], xmm0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov cl, byte [esp + 7]
mov byte [esi + eax + 0x40], cl
push str.__in
push esi
call fcn.102134b0
add esp, 8
push dword [ebp + 0x10]
push eax
call fcn.102134b0
add esp, 8
push 0x1035eb2e
push eax
call fcn.102134b0
add esp, 8
push dword [ebp + 0x14]
push eax
call fcn.102134b0
add esp, 8
push 0x1034e8cb
push eax
call fcn.102134b0
add esp, 8
mov ecx, eax
push dword [ebp + 0x18]
call ebx
push 0x1035e7aa
push eax
call fcn.102134b0
add esp, 8
push dword [ebp + 0xc]
push eax
call fcn.102134b0
add esp, 8
lea ecx, [esp + 0x58]
lea edi, [esp + 0x28]
push edi
call fcn.1002daf0
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 4]
lea esi, [ebp + 8]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.102148a0
mov ecx, 0x1870
add ecx, dword [ebx]
push 0x387
push 2
push edi
push 0x9146
push dword [esi]
push 0x824c
push 0x8246
call fcn.10030170
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x1001a1a0
mov eax, dword [esp + 0x28]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001a196
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001a293
mov eax, ecx
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x40], 0x102c3454
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esp + eax + 0x3c], ecx
mov dword [esp + 0x58], 0x102c3470
test byte [esp + 0x94], 1
je 0x1001a205
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov ecx, 0x48
test eax, eax
je 0x1001a26f
mov ecx, dword [esp + ecx + 0x40]
add eax, dword [ecx]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jae 0x1001a27f
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
mov dword [eax], ecx
mov eax, dword [esp + 0x84]
mov dword [eax], ecx
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [esp + 0x78]
mov dword [eax], ecx
mov eax, dword [esp + 0x88]
mov dword [eax], ecx
mov dword [esp + 0x90], ecx
and byte [esp + 0x94], 0xfe
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.10212780
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov ecx, 0x44
jmp 0x1001a1e2
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x1001a293
mov ecx, eax
jmp 0x1001a1fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3