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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6302e3
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov esi, ecx
push 0xb0
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], 0
push 0
push eax
call fcn.004cf9d0
add esp, 0xc
mov dword [esp + 0x7c], 0x6a0560
mov dword [esp + 0x8c], 0x6a0568
mov dword [esp + 0xe4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [esp + 0x98]
mov dword [esp + 0x144], 0
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x20], 0x10
call fcn.004454b0
mov dword [esp + 0x140], 1
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x7c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x78], eax
lea ecx, [esp + 0x94]
call fcn.004459b0
mov dword [esp + 0x94], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0x140], 3
cmp dword [esi + 0x4c68], 0
jne 0x4982b9
push 0
push 0x698588
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.00404a10
lea edi, [esp + 0x4c]
mov byte [esp + 0x140], 4
mov ebx, 0x11
jmp 0x4982e4
lea eax, [esi + 0x4c58]
push eax
lea eax, [esp + 0x20]
push 0x69a894
push eax
call fcn.00445aa0
add esp, 0xc
mov edi, eax
mov dword [esp + 0x140], 5
mov ebx, 0x12
cmp dword [esi + 0x4c4c], 0
mov dword [esp + 0x18], ebx
jne 0x49832a
push 0
push 0x698588
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00404a10
lea ecx, [esp + 0x34]
mov dword [esp + 0x140], 6
or ebx, 4
jmp 0x498353
lea eax, [esi + 0x4c3c]
push eax
lea eax, [esp + 0x68]
push 0x69a894
push eax
call fcn.00445aa0
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x140], 7
or ebx, 8
movzx eax, word [esi + 0x4c54]
push 0x6a2a4c
push ecx
push edi
push ecx
push eax
movzx eax, word [esi + 0x4c38]
push ecx
push str.__remote:_
push ecx
push ecx
push ecx
push eax
push ecx
push str.close_local:_
push ecx
lea eax, [esp + 0xc4]
mov dword [esp + 0x50], ebx
push str.Disconnect
push eax
call fcn.0040b800
add esp, 0xc
push eax
call fcn.0040b800
add esp, 0xc
mov ecx, eax
call fcn.0047ba00
add esp, 4
push eax
call fcn.00485a80
add esp, 0xc
push eax
call fcn.0040b800
add esp, 0xc
mov ecx, eax
call fcn.0047ba00
add esp, 4
push eax
call fcn.00485a80
add esp, 0xc
push eax
call fcn.0040b800
add esp, 8
test bl, 8
je 0x498405
and ebx, 0xfffffff7
cmp dword [esp + 0x78], 0x10
jb 0x4983f0
push dword [esp + 0x64]
call fcn.004c41b0
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
test bl, 4
je 0x498435
and ebx, 0xfffffffb
cmp dword [esp + 0x48], 0x10
jb 0x498420
push dword [esp + 0x34]
call fcn.004c41b0
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
test bl, 2
je 0x498465
and ebx, 0xfffffffd
cmp dword [esp + 0x30], 0x10
jb 0x498450
push dword [esp + 0x1c]
call fcn.004c41b0
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x140], 3
test bl, 1
je 0x498488
cmp dword [esp + 0x60], 0x10
jb 0x498488
push dword [esp + 0x4c]
call fcn.004c41b0
add esp, 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x80]
call fcn.0047bed0
push eax
mov byte [esp + 0x144], 8
mov ecx, dword [esi + 0x4c24]
push 2
call fcn.00483550
cmp dword [esp + 0x30], 0x10
jb 0x4984c2
push dword [esp + 0x1c]
call fcn.004c41b0
add esp, 4
lea ecx, [esp + 0xe4]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x140], 0xffffffff
call fcn.0047be20
lea eax, [esp + 0xe4]
mov dword [esp + 0xe4], vtable.std::ios_base.0
push eax
call fcn.0058dcc4
add esp, 4
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret