Function at 0x412640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49088c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4be4bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x60], 0
xor ebx, ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov word [ebp - 0x94], 0
mov byte [ebp - 0x92], 0
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
call fcn.00414d80
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x4126f3
mov esi, dword [esi]
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x164], 0x49cb04
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x60], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x168], eax
lea eax, [ebp - 0x154]
mov ecx, eax
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 4
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x10c], 0
mov byte [ebp - 0x117], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x4c2824]
mov dword [ebp - 0x114], eax
mov eax, dword [0x4c2828]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x11c], 0
push 0x40
push 0x21
push esi
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 5
call fcn.00415540
test eax, eax
jne 0x4127ee
push eax
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x164]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x168], eax
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x41284f
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412845
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp dword [ebp - 0x108], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
jne 0x412952
lea eax, [ebp - 0x9c]
mov ecx, edi
push eax
call fcn.00411830
lea ecx, [ebp - 0x164]
call fcn.00411d40
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x412933
mov ebx, dword [ebp - 0x8c]
mov esi, edi
cmp esi, ebx
je 0x4128ec
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4128d4
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4128ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132dd
mov eax, edx
push ecx
push eax
call fcn.0048c947
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, ebx
jne 0x4128a1
mov ecx, dword [ebp - 0x88]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x412929
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132dd
push ecx
push edi
call fcn.0048c947
add esp, 8
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048cbb4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x2bc], 0x49caac
mov dword [ebp - 0x2ac], 0x49cab4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x60], 6
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 [ebp - 0x2bc]
mov dword [ebp - 4], 9
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2c0], eax
lea ecx, [ebp - 0x2a4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2ac]
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___class_std::basic_streambuf_char__struct_std::char_traits_char____]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00416310
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
push eax
call fcn.00413a80
add esp, 8
mov edi, eax
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x20c], 0x49cb14
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov eax, 0xe
mov byte [ebp - 4], 0xd
push 0
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20c]
push 0
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 4], 0xe
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x210], eax
lea eax, [ebp - 0x1fc]
mov ecx, eax
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x68], edi
jb 0x412abb
mov eax, dword [edi]
mov dword [ebp - 0x68], eax
mov edi, dword [edi + 0x10]
mov eax, 2
cmp edi, 0x7fffffff
ja 0x4132e3
test edi, edi
je 0x412b16
push edi
lea ecx, [ebp - 0x1bc]
call fcn.00402350
push edi
push dword [ebp - 0x68]
mov esi, eax
push esi
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1f0]
mov dword [eax], esi
mov eax, dword [ebp - 0x1e0]
mov dword [eax], esi
mov eax, dword [ebp - 0x1d0]
mov dword [eax], edi
mov eax, 3
jmp 0x412b20
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], eax
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x11
cmp edx, 0x10
jb 0x412b5a
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b96
push edx
push ecx
call fcn.0048c947
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x412ba6
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412b9c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
push 0x3b
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004113e0
mov ecx, eax
add esp, 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
jne 0x4130b4
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x14
test edi, edi
je 0x412c12
push edi
push 0x3d
push esi
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x412c12
sub ecx, esi
jmp 0x412c15
or ecx, 0xffffffff
cmp edi, ecx
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0xf
cmovb ecx, edi
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00402590
or dword [ebp - 0x60], 0x10
mov byte [ebp - 4], 0x15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov edi, eax
lea eax, [ebp - 0x68]
cmovae esi, dword [ebp - 0x44]
push 0xa
push eax
push esi
mov dword [edi], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov dword [ebp - 0xa8], eax
cmp esi, dword [ebp - 0x68]
je 0x4132e8
cmp dword [edi], 0x22
je 0x413306
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x412cca
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412cba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412cba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
mov eax, dword [ebp - 0xa8]
add esp, 8
cmp eax, 0xf
ja case.default.0x412cd3
jmp dword [eax*4 + 0x413310]
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x9c], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x9b], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x9a], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x99], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x98], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416890
add esp, 4
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416890
add esp, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004147b0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [esi + 0x14], 0x10
mov edi, eax
jb 0x412dcf
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0xac]
mov dword [edi], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
add esp, 0xc
mov dword [ebp - 0xa8], eax
mov ecx, edx
mov dword [ebp - 0x6c], ecx
cmp esi, dword [ebp - 0xac]
je 0x4132f2
cmp dword [edi], 0x22
je 0x4132fc
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x412e4b
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412e38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412e38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
mov eax, dword [ebp - 0xa8]
add esp, 8
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416890
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x97], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x96], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x94], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x93], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x92], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
call fcn.00416800
add esp, 4
mov byte [ebp - 0x95], al
mov dword [ebp - 4], 0x13
jmp 0x412bbc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004147b0
add esp, 8
push 0x2c
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00416040
or dword [ebp - 0x60], 0x20
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x412f90
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412f86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412f86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edi, dword [ebp - 0xa4]
test edi, edi
je 0x413034
mov esi, edi
cmp esi, ebx
je 0x412feb
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x412fd3
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x412fc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413024
mov eax, edx
push ecx
push eax
call fcn.0048c947
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, ebx
jne 0x412fa4
mov ecx, dword [ebp - 0xa0]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x41302a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41302a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0048c947
add esp, 8
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.004134a0
mov dword [ebp - 4], 0x13
jmp 0x412bbc
cmp dword [ebp - 0x108], 0
je 0x4130e4
lea esi, [ebp - 0x154]
mov ecx, esi
call fcn.00413350
push dword [ebp - 0x108]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x4130e6
xor esi, esi
lea ecx, [ebp - 0x154]
mov byte [ebp - 0x10c], 0
mov byte [ebp - 0x117], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x4c2824]
mov dword [ebp - 0x114], eax
mov eax, dword [0x4c2828]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x11c], 0
test esi, esi
jne 0x413148
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x164]
push esi
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea eax, [ebp - 0x9c]
mov ecx, edi
push eax
call fcn.00411830
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41318a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413180
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132dd
push edx
push ecx
call fcn.0048c947
add esp, 8
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x210], eax
lea ecx, [ebp - 0x1fc]
call fcn.00411aa0
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2c0], eax
lea ecx, [ebp - 0x2a4]
call fcn.00411aa0
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x254]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x164]
call fcn.00411d40
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x412933
mov ebx, dword [ebp - 0x8c]
mov esi, edi
cmp esi, ebx
je 0x41329c
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x413284
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x41327a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132dd
mov eax, edx
push ecx
push eax
call fcn.0048c947
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, ebx
jne 0x413255
mov ecx, dword [ebp - 0x88]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x412929
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412929
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
push str.invalid_stoi_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
push str.invalid_stoll_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
push str.stoll_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
push str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
fisubr dword [ecx + eax*2]
add al, bh
sub al, 0x41
add byte [esi], dl
sub eax, 0x2d340041
inc ecx
add byte [edx + 0x2d], dl
inc ecx
add byte [ebx + 0x7000412d], cl
sub eax, 0x2da90041
inc ecx
add byte [ebp + 0x2e], bl
inc ecx
add byte [eax + 0x2e], bh
inc ecx
add byte [esi - 0x4bffbed2], dl
inc ecx
add dl, dl
inc ecx
add al, dh
inc ecx
add byte [esi], cl
das
inc ecx
add byte [edi + ebp], ch
inc ecx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp