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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x45786e
mov edi, dword [esi + 0x20]
mov ebp, dword [esi + 0x24]
mov ecx, edi
or ecx, ebp
je 0x45786e
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call fcn.0045fbb0
mov eax, dword [esi + 0x6c]
push 4
lea edx, [esp + 0x38]
push edx
push eax
call fcn.0045fc40
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x6c]
add ecx, 4
add edi, ecx
push ebx
adc ebp, ebx
push ebp
push edi
push edx
call fcn.0045fbb0
mov ecx, dword [esi + 0x6c]
push 1
lea eax, [esp + 0x43]
push eax
push ecx
call fcn.0045fc40
mov edx, dword [esi + 0x6c]
add edi, 1
push ebx
adc ebp, ebx
push ebp
push edi
push edx
call fcn.0045fbb0
mov ecx, dword [esi + 0x6c]
add esp, 0x48
push 1
lea eax, [esp + 0x16]
push eax
push ecx
call fcn.0045fc40
mov edx, dword [esi + 0x6c]
add edi, 1
push ebx
adc ebp, ebx
push ebp
push edi
push edx
call fcn.0045fbb0
mov ecx, dword [esi + 0x6c]
push 4
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.0045fc40
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 0x6c]
push 1
push ebx
push edx
push eax
call fcn.0045fbb0
mov edx, dword [esi + 0x6c]
push 4
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.0045fc40
mov eax, dword [esi + 0x6c]
add esp, 0x44
push 1
push ebx
push 4
push eax
call fcn.0045fbb0
mov ecx, dword [esi + 0x60]
lea edi, [esi + 0x4c]
add esp, 0x10
mov eax, dword [ecx]
mov ebp, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x30], edx
cmp ebp, ebx
je 0x4574da
cmp ebp, eax
je 0x4574e0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
je 0x457543
cmp ebp, ebx
jne 0x457539
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x14]
jne 0x457505
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp ebp, ebx
jne 0x45753e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x14]
jne 0x457531
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
jmp 0x4574c5
mov eax, dword [ebp]
jmp 0x4574f6
mov eax, dword [ebp]
jmp 0x457522
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [edi + 0x14]
mov dword [ecx + 4], ecx
mov dword [edi + 0x18], ebx
cmp eax, dword [edi + 0x14]
je 0x45756a
mov ebp, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebp
cmp ebp, dword [edi + 0x14]
jne 0x457558
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x14], ebx
jbe 0x457612
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
mov edi, edi
mov edx, dword [esi + 0x6c]
push 4
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.0045fc40
mov eax, dword [esp + 0x34]
lea eax, [eax + eax*2]
lea ecx, [eax*8 + 8]
push ecx
call ebx
mov edx, dword [esp + 0x38]
mov dword [eax], edx
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x28], eax
lea edx, [ecx*8 + 4]
push edx
add eax, 4
push eax
mov eax, dword [esi + 0x6c]
push eax
call fcn.0045fc40
mov ebp, dword [edi + 0x14]
mov edx, dword [ebp + 4]
add esp, 0x1c
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00459420
mov ecx, dword [edi + 0x18]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, 1
jb 0x457718
inc ecx
mov dword [edi + 0x18], ecx
mov dword [ebp + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x14]
jb 0x457580
xor ebx, ebx
mov edx, dword [esi + 0x6c]
push 4
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0045fc40
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [edi + 0x14]
mov dword [ecx + 4], ecx
add esp, 0xc
mov dword [edi + 0x18], ebx
cmp eax, dword [edi + 0x14]
je 0x457667
mov ebp, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebp
cmp ebp, dword [edi + 0x14]
jne 0x457655
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x14], ebx
jbe 0x4577c9
xor eax, eax
cmp byte [esp + 0x13], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
jne 0x45775f
cmp byte [esp + 0x12], al
jne 0x45775f
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.0045fc40
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebp, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [ebp + 4]
push edx
push eax
push ebp
mov ecx, edi
call fcn.00456030
mov ecx, dword [edi + 0x18]
mov edx, 0xaaaaaaa
sub edx, ecx
cmp edx, 1
jb 0x4577e0
push 1
push ebx
push 0x14
jmp 0x45779e
push str.list_T__too_long
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_void_]
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x50], vtable.std::logic_error.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x48e154
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], vtable.std::length_error.0
call sub.MSVCR90.dll__CxxThrowException
mov ecx, dword [esi + 0x6c]
push 0x18
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.0045fc40
mov ebp, dword [edi + 0x14]
mov eax, dword [ebp + 4]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
push eax
push ebp
mov ecx, edi
call fcn.00456030
mov ecx, dword [edi + 0x18]
mov edx, 0xaaaaaaa
sub edx, ecx
cmp edx, 1
jb 0x457827
push 1
push ebx
push 8
inc ecx
mov dword [edi + 0x18], ecx
mov dword [ebp + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov edx, dword [esi + 0x6c]
push edx
call fcn.0045fbb0
mov eax, dword [esp + 0x3c]
inc eax
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x14]
jb 0x457675
mov ecx, edi
call fcn.00457090
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
push str.list_T__too_long
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_void_]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x50], vtable.std::logic_error.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x48e154
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], vtable.std::length_error.0
call sub.MSVCR90.dll__CxxThrowException
push str.list_T__too_long
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_void_]
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x50], vtable.std::logic_error.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x48e154
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], vtable.std::length_error.0
call sub.MSVCR90.dll__CxxThrowException
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret