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

Disassembly:
sub esp, 0x100
mov eax, dword [0x496ee4]
xor eax, esp
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x104]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x38], eax
call fcn.00473db0
xor ebx, ebx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 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 0x45bcca
lea ecx, [esp + 0xf0]
mov eax, esi
push ecx
lea esi, [esp + 0x34]
lea edi, [esp + 0xb4]
call fcn.004586a0
add esp, 4
test al, al
je 0x45bcca
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_]
lea edx, [esp + 0xd4]
push edx
push 0x488adc
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.004730d0
lea eax, [esp + 0x10]
push eax
push str.size
mov ecx, esi
call fcn.00473230
cmp dword [esp + 0xe8], ebx
jbe 0x45bcbd
cmp dword [esp + 0x10], ebx
je 0x45bcbd
lea ecx, [esp + 0x44]
call fcn.0044a690
lea ecx, [esp + 0x44]
push ecx
push 0x488ad0
mov ecx, esi
call fcn.00473420
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x5c]
push ebx
push edx
mov dword [esp + 0x68], esi
call fcn.00474420
add esp, 8
cmp eax, esi
jne 0x45bc99
lea ecx, [esp + 0x98]
call fcn.0044a2b0
sub esp, 0x1c
mov ecx, esp
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 esi
lea ecx, [esp + 0xb8]
call fcn.0045b870
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov esi, dword [esp + 0x44]
mov ebp, eax
xor bl, bl
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebp
lea esp, [esp]
mov edi, dword [esp + 0x58]
test esi, esi
je 0x45bb4e
cmp esi, dword [esp + 0x44]
je 0x45bb54
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x45bcf1
push 4
call fcn.0047bd5c
xor edi, edi
add esp, 4
cmp eax, edi
je 0x45bb78
lea ecx, [esp + 0x14]
mov dword [eax], ecx
mov dword [esp + 0x14], eax
jmp 0x45bb7c
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
cmp esi, edi
jne 0x45bbae
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor esi, esi
cmp ebp, dword [esi + 0x14]
jne 0x45bb9f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jb 0x45bbb2
mov eax, dword [ebp + 0xc]
jmp 0x45bbb5
mov esi, dword [esi]
jmp 0x45bb94
lea eax, [ebp + 0xc]
push edi
push 0x488acc
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0045dca0
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
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 0x45bc65
push edi
lea ecx, [esp + 0x18]
call fcn.00455f20
cmp dword [eax + 0x18], esi
jb 0x45bbfd
mov eax, dword [eax + 4]
jmp 0x45bc00
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll_atol]
mov esi, eax
add esp, 4
cmp esi, edi
jl 0x45bc65
cmp esi, dword [esp + 0x60]
jge 0x45bc65
push 1
lea ecx, [esp + 0x18]
call fcn.00455f20
push eax
push esi
lea ecx, [esp + 0xa0]
call fcn.00455f20
mov ecx, eax
call dword [0x47f36c]
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.0044a710
mov ecx, dword [esp + 0x14]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0044f700
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
jmp 0x45bb40
lea ecx, [esp + 0x14]
call fcn.0044a710
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x98]
call fcn.0044a710
mov eax, dword [esp + 0x98]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
lea ecx, [esp + 0x44]
call fcn.00450d40
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x60], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
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 0x45bdd4
lea ecx, [esp + 0x80]
mov dword [eax], ecx
mov dword [esp + 0x80], eax
jmp 0x45bddb
test bl, bl
je 0x45bc7b
push 4
call fcn.0047bd5c
xor esi, esi
add esp, 4
cmp eax, esi
je 0x45bd11
lea ecx, [esp + 0x14]
mov dword [eax], ecx
mov dword [esp + 0x14], eax
jmp 0x45bd15
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
call fcn.00449a60
lea edx, [esp + 0x14]
push edx
push str.peer
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call fcn.00473420
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0xdc]
push edx
push eax
push 1
call fcn.0044c470
lea ecx, [esp + 0x14]
call fcn.00450d40
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x30], esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x98]
call fcn.0044a710
mov eax, dword [esp + 0x98]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00450d40
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x60], esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
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 0x45bea4
mov dword [esp + 0x80], ebx
push 4
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.0047bd5c
add esp, 4
cmp eax, ebx
je 0x45be0a
lea edx, [esp + 0x64]
mov dword [eax], edx
mov dword [esp + 0x64], eax
jmp 0x45be0e
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0x64]
call fcn.00449a60
push 0x4806ad
lea ecx, [esp + 0xd8]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 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 + 0x64]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0xdc]
push edx
push ebx
push ebx
call fcn.0044c470
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 + 0x64]
call fcn.00450d40
mov eax, dword [esp + 0x78]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x80], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x80]
call fcn.0044a710
mov edx, dword [esp + 0x80]
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