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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov eax, dword [ebx]
xor ebp, ebp
mov dword [esp + 0xc], eax
push esi
mov eax, ebp
mov dword [edx], ebp
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
cmp dword [ebx + ecx*4 + 0x3f4], ebp
je 0x10034fe6
mov dword [edx], 1
xor eax, eax
jmp 0x10035360
lea eax, [esp + 0x38]
push eax
call fcn.1002b9bb
mov esi, eax
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
lea eax, [esp + 0x50]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
push eax
push edi
call fcn.10035596
mov ecx, edx
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
cmp ecx, ebp
jg 0x10035037
jl 0x10035022
cmp eax, ebp
jae 0x10035037
push str.Connection_time_out
push edi
call fcn.10034609
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x10035360
mov eax, ebp
xor eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + ebp*4 + 0x1b0]
cmp eax, 0xffffffff
je 0x1003522a
xor esi, esi
push esi
push esi
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.10034046
add esp, 0x14
test eax, eax
jne 0x1003512b
mov eax, esi
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x450]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x68]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x468]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x46c]
mov dword [esp + 0x50], eax
movsd dword es:[edi], dword [esi]
call fcn.1002b97f
mov ecx, dword [esp + 0x50]
add esp, 0x20
mov esi, eax
cmp edx, ecx
jl 0x100350d7
mov eax, dword [esp + 0x24]
jg 0x100350bb
cmp esi, eax
jb 0x100350d7
push ecx
push eax
push str.After__ldms_connect_time__move_on__n
push dword [esp + 0x20]
call fcn.100346c5
mov eax, 0x274c
add esp, 0x10
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x10035177
cmp dword [ebx + 0x5c], ebp
jne 0x10035177
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x450]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x68]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1002b97f
add esp, 0x20
test edx, edx
jl 0x10035177
jg 0x10035119
cmp eax, 0xc8
jb 0x10035177
mov edi, dword [esp + 0x10]
push 1
push edi
push ebx
call fcn.10035fb1
add esp, 0xc
jmp 0x1003517b
cmp eax, 2
je 0x1003514f
cmp dword [ebx + 0x438], esi
jne 0x1003514f
test al, 4
je 0x10035177
lea eax, [esp + 0x1c]
push eax
push dword [ebx + ebp*4 + 0x1b0]
call fcn.10036055
jmp 0x10035175
lea eax, [esp + 0x1c]
push eax
push dword [ebx + ebp*4 + 0x1b0]
call fcn.10036055
pop ecx
pop ecx
test eax, eax
jne 0x1003528d
push str.Connection_failed_n
push edi
call fcn.100346c5
pop ecx
pop ecx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1003523a
mov eax, dword [esp + 0x14]
push esi
mov dword [eax + 0x47e4], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx + ebp*4 + 0x58]
test eax, eax
je 0x10035230
push 0x2e
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.1002c405
push esi
push ebx
call fcn.100409d4
push eax
push dword [ebx + 0xfc]
lea eax, [esp + 0x74]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push dword [esp + 0x38]
call fcn.100346c5
mov eax, dword [ebx + ebp*4 + 0x58]
add esp, 0x28
cmp dword [eax + 0x1c], 0
jne 0x100351e9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
jmp 0x100351fa
push 0
push 2
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.10061490
push ebp
push edi
push ebx
mov dword [ebx + 0x468], eax
mov dword [ebx + 0x46c], edx
call fcn.10035fb1
add esp, 0xc
cmp eax, 7
jne 0x10035224
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + ecx*4 + 0x1b0], 0xffffffff
jne 0x1003523a
mov dword [esp + 0x18], eax
jmp 0x1003523e
mov esi, dword [esp + 0x1c]
jmp 0x10035234
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x10035242
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
inc ebp
cmp ebp, 2
jl 0x10035037
test eax, eax
je 0x10035360
xor ebp, ebp
cmp dword [ebx + 0x5c], ebp
jne 0x10035276
push 1
push dword [esp + 0x14]
push ebx
call fcn.10035fb1
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x10034fdf
cmp dword [ebx + 0x3dc], ebp
je 0x10035319
mov ebp, dword [ebx + 0xc4]
jmp 0x1003533f
mov eax, dword [ebx + ebp*4 + 0x1b0]
mov esi, dword [esp + 0x10]
mov dword [ebx + esi*4 + 0x1a8], eax
mov eax, dword [ebx + ebp*4 + 0x58]
mov dword [ebx + 0x54], eax
or dword [ebx + ebp*4 + 0x1b0], 0xffffffff
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx + ebp*4 + 0x1b0]
cmp eax, 0xffffffff
je 0x100352cf
push eax
push ebx
call fcn.10034d39
or dword [ebx + ebp*4 + 0x1b0], 0xffffffff
pop ecx
pop ecx
push esi
push ebx
call fcn.1002dbc1
pop ecx
pop ecx
test eax, eax
jne 0x10035360
mov eax, dword [esp + 0x34]
xor ecx, ecx
inc ecx
mov dword [ebx + esi*4 + 0x3f4], ecx
mov dword [eax], ecx
test esi, esi
jne 0x100352fe
push 4
push edi
call fcn.1003d282
pop ecx
pop ecx
push dword [ebx + esi*4 + 0x1a8]
push ebx
call fcn.1003569a
push ebx
call fcn.10030718
add esp, 0xc
jmp 0x10034fdf
cmp dword [ebx + 0x3d8], ebp
je 0x10035329
mov ebp, dword [ebx + 0xe4]
jmp 0x1003533f
cmp dword [ebx + 0x3cc], ebp
je 0x10035339
mov ebp, dword [ebx + 0xb4]
jmp 0x1003533f
mov ebp, dword [ebx + 0xa0]
push esi
push ebx
call fcn.100409d4
push eax
push dword [ebx + 0xfc]
push ebp
push str.Failed_to_connect_to__s_port__ld:__s
push edi
call fcn.10034609
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x7c
ret