Function at 0x410290
Capabilities:
Connect socket
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48c526
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4ceb00]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebp
push esi
push edi
mov eax, dword [0x4ceb00]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
push str._Enter__UfAuthClient::Connect__...
push 1
push 0x32
push str.....FrameworkCommonFrwk_UfAuthClient.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x10
lea eax, [esp + 0x14]
lea ebp, [ebx + 0x64]
push eax
mov edi, ebp
mov byte [esp + 0x18], 0x3a
call fcn.00410a50
mov edi, eax
cmp edi, 0xffffffff
je 0x410556
mov eax, dword [ebx + 0x78]
add eax, 0xffffffff
cmp edi, eax
jae 0x410556
push edi
xor ecx, ecx
lea esi, [esp + 0x5c]
mov edx, ebp
call fcn.0040fc40
push 0xffffffffffffffff
lea ecx, [edi + 1]
lea esi, [esp + 0x40]
mov edx, ebp
mov dword [esp + 0x104], 0
call fcn.0040fc40
mov byte [esp + 0x100], 1
mov ecx, dword [esp + 0x40]
xor eax, eax
xor edi, edi
mov esi, 0x10
cmp dword [esp + 0x54], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 1
jae 0x41038a
lea ecx, [esp + 0x40]
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x410398
lea eax, [esp + 0x5c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, edi
je 0x410440
push edi
push 0x400
push 0x4da680
push 0x400
push eax
push edi
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp + 0x18], esi
jb 0x4103d9
mov ebp, dword [ebp + 4]
jmp 0x4103dc
add ebp, 4
push 0x4da680
push ebp
push str._UfAuthClient::Connect__:_::getaddrinfo___failed_for__S:__s
push 0x100
push 0x44
push str.....FrameworkCommonFrwk_UfAuthClient.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x18
cmp dword [esp + 0x54], esi
jb 0x410413
mov eax, dword [esp + 0x40]
push eax
call fcn.0043db3e
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
jb 0x410583
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0043db3e
add esp, 4
jmp 0x410583
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
push edx
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.00472d20
movzx edx, word [esp + 0x80]
mov esi, dword [esi + 0x10]
add esp, 0xc
push edi
push 1
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4104ba
push esi
lea eax, [esp + 0x78]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x4104d1
cmp dword [ebp + 0x18], 0x10
jb 0x410491
mov ebp, dword [ebp + 4]
jmp 0x410494
add ebp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebp
push str._UfAuthClient::Connect__:_::connect___failed_for__S:_error_d
push 0x100
push 0x52
push str.....FrameworkCommonFrwk_UfAuthClient.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x18
lea ecx, [esp + 0x3c]
call fcn.004099a0
lea ecx, [esp + 0x58]
call fcn.004099a0
jmp 0x410583
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea esi, [ebx + 0x48]
call fcn.00409730
test al, al
jne 0x410525
cmp dword [ebp + 0x18], 0x10
jb 0x4104f3
mov ebp, dword [ebp + 4]
jmp 0x4104f6
add ebp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebp
push str._UfAuthClient::Connect__:_m_BuffSocket.SetSocket___failed_for__S:_error_d
push 0x100
push 0x58
push str.....FrameworkCommonFrwk_UfAuthClient.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x18
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4104ba
push str._Leave__UfAuthClient::Connect__...
push 1
push 0x5d
push str.....FrameworkCommonFrwk_UfAuthClient.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x10
lea ecx, [esp + 0x3c]
call fcn.004099a0
lea ecx, [esp + 0x58]
call fcn.004099a0
mov al, 1
jmp 0x410585
cmp dword [ebp + 0x18], 0x10
jb 0x410561
mov ebp, dword [ebp + 4]
jmp 0x410564
add ebp, 4
push ebp
push str._UfAuthClient::Connect__:_Invalid_address_and_port:__S
push 0x100
push 0x36
push str.....FrameworkCommonFrwk_UfAuthClient.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x14
xor al, al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.0046fe44
add esp, 0xf4
ret