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

Disassembly:
sub esp, 0x100
mov eax, dword [0x496ee4]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x3c], ebp
call fcn.00473db0
xor ebx, ebx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp byte [esp + 0x118], bl
je 0x45c244
lea eax, [esp + 0xf0]
push eax
mov eax, esi
lea esi, [esp + 0x1c]
lea edi, [esp + 0xb4]
call fcn.004586a0
add esp, 4
test al, al
je 0x45c244
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 4
mov dword [esp + 0x18], ebx
call fcn.0047bd5c
add esp, 4
cmp eax, ebx
je 0x45bf85
lea ecx, [esp + 0x48]
mov dword [eax], ecx
mov dword [esp + 0x48], eax
jmp 0x45bf89
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
cmp dword [ebp + 0x2c4], ebx
jne 0x45c173
lea edx, [esp + 0xd4]
push edx
push 0x488adc
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], bl
call fcn.004730d0
lea eax, [esp + 0x14]
push eax
push str.size
lea ecx, [esp + 0x20]
call fcn.00473230
cmp dword [esp + 0xe8], ebx
jbe 0x45c221
cmp dword [esp + 0x14], ebx
je 0x45c221
lea ecx, [esp + 0x60]
call fcn.0044a690
lea ecx, [esp + 0x60]
push ecx
push 0x488ad0
lea ecx, [esp + 0x20]
call fcn.00473420
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x78]
push ebx
push edx
call fcn.00474420
add esp, 8
cmp eax, ebp
jne 0x45c141
push ebp
lea ecx, [esp + 0x4c]
call fcn.0045b9e0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov edi, 0x10
lea esp, [esp]
mov esi, dword [esp + 0x74]
cmp eax, ebx
je 0x45c04e
cmp eax, dword [esp + 0x60]
je 0x45c054
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x44], esi
je 0x45c141
lea ecx, [esp + 0x20]
mov byte [esp + 0x13], bl
call fcn.0044a2b0
lea ecx, [esp + 0x40]
call fcn.0044f740
cmp dword [eax + 0x18], edi
jb 0x45c07e
mov eax, dword [eax + 4]
jmp 0x45c081
add eax, 4
push ebx
push 0x488acc
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0045dca0
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x10
cmp eax, 2
jne 0x45c12b
push ebx
lea ecx, [esp + 0x24]
call fcn.00455f20
cmp dword [eax + 0x18], edi
jb 0x45c0c9
mov eax, dword [eax + 4]
jmp 0x45c0cc
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll_atol]
mov esi, eax
add esp, 4
cmp esi, ebx
jl 0x45c12b
cmp esi, ebp
jge 0x45c12b
push 1
lea ecx, [esp + 0x24]
call fcn.00455f20
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.00455f20
mov ecx, eax
call dword [0x47f36c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x13], 1
call fcn.0044a710
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x40]
call fcn.0044f700
mov eax, dword [esp + 0x40]
jmp 0x45c040
lea ecx, [esp + 0x20]
call fcn.0044a710
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x60]
call fcn.00450d40
mov eax, dword [esp + 0x74]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x7c], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ebp, dword [esp + 0x44]
add esp, 8
cmp byte [esp + 0x13], bl
je 0x45c221
push 4
call fcn.0047bd5c
add esp, 4
cmp eax, ebx
je 0x45c18d
lea edx, [esp + 0x20]
mov dword [eax], edx
mov dword [esp + 0x20], eax
jmp 0x45c191
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x20]
call fcn.00449a60
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push str.peer
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], ebx
call fcn.00473420
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xdc]
push eax
push ecx
push 1
mov ecx, ebp
call fcn.00449700
lea ecx, [esp + 0x20]
call fcn.00450d40
mov edx, dword [esp + 0x34]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x3c], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x48]
call fcn.0044a710
mov ecx, dword [esp + 0x48]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x45c33b
lea ecx, [esp + 0x48]
call fcn.0044a710
mov edx, dword [esp + 0x48]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 4
call fcn.0047bd5c
add esp, 4
cmp eax, ebx
je 0x45c264
lea ecx, [esp + 0x98]
mov dword [eax], ecx
mov dword [esp + 0x98], eax
jmp 0x45c26b
mov dword [esp + 0x98], ebx
push 4
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
call fcn.0047bd5c
add esp, 4
cmp eax, ebx
je 0x45c29a
lea edx, [esp + 0x7c]
mov dword [eax], edx
mov dword [esp + 0x7c], eax
jmp 0x45c29e
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x7c]
call fcn.00449a60
push 0x4806ad
lea ecx, [esp + 0xd8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebx
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 eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0xdc]
push edx
push ebx
push ebx
mov ecx, ebp
call fcn.00449700
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
call fcn.00450d40
mov eax, dword [esp + 0x90]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x80]
push ecx
mov dword [esp + 0x98], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x98]
call fcn.0044a710
mov edx, dword [esp + 0x98]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb0]
call fcn.00474340
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047bc8a
add esp, 0x100
ret