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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x100a5688]
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 0x10030f40
mov dword [edx], 1
xor eax, eax
jmp 0x100312ba
lea eax, [esp + 0x38]
push eax
call fcn.1002799f
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.100314f3
mov ecx, edx
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
cmp ecx, ebp
jg 0x10030f91
jl 0x10030f7c
cmp eax, ebp
jae 0x10030f91
push str.Connection_time_out
push edi
call fcn.1003054c
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x100312ba
mov eax, ebp
xor eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + ebp*4 + 0x1b0]
cmp eax, 0xffffffff
je 0x10031184
xor esi, esi
push esi
push esi
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.1002ff98
add esp, 0x14
test eax, eax
jne 0x10031085
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.10027963
mov ecx, dword [esp + 0x50]
add esp, 0x20
mov esi, eax
cmp edx, ecx
jl 0x10031031
mov eax, dword [esp + 0x24]
jg 0x10031015
cmp esi, eax
jb 0x10031031
push ecx
push eax
push str.After__ldms_connect_time__move_on__n
push dword [esp + 0x20]
call fcn.10030603
mov eax, 0x274c
add esp, 0x10
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x100310d1
cmp dword [ebx + 0x5c], ebp
jne 0x100310d1
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.10027963
add esp, 0x20
test edx, edx
jl 0x100310d1
jg 0x10031073
cmp eax, 0xc8
jb 0x100310d1
mov edi, dword [esp + 0x10]
push 1
push edi
push ebx
call fcn.10031ed3
add esp, 0xc
jmp 0x100310d5
cmp eax, 2
je 0x100310a9
cmp dword [ebx + 0x438], esi
jne 0x100310a9
test al, 4
je 0x100310d1
lea eax, [esp + 0x1c]
push eax
push dword [ebx + ebp*4 + 0x1b0]
call fcn.10031f77
jmp 0x100310cf
lea eax, [esp + 0x1c]
push eax
push dword [ebx + ebp*4 + 0x1b0]
call fcn.10031f77
pop ecx
pop ecx
test eax, eax
jne 0x100311e7
push str.Connection_failed_n
push edi
call fcn.10030603
pop ecx
pop ecx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10031194
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 0x1003118a
push 0x2e
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.100283cb
push esi
push ebx
call fcn.1003cb1a
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.10030603
mov eax, dword [ebx + ebp*4 + 0x58]
add esp, 0x28
cmp dword [eax + 0x1c], 0
jne 0x10031143
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
jmp 0x10031154
push 0
push 2
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.1005dcb0
push ebp
push edi
push ebx
mov dword [ebx + 0x468], eax
mov dword [ebx + 0x46c], edx
call fcn.10031ed3
add esp, 0xc
cmp eax, 7
jne 0x1003117e
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + ecx*4 + 0x1b0], 0xffffffff
jne 0x10031194
mov dword [esp + 0x18], eax
jmp 0x10031198
mov esi, dword [esp + 0x1c]
jmp 0x1003118e
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x1003119c
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
inc ebp
cmp ebp, 2
jl 0x10030f91
test eax, eax
je 0x100312ba
xor ebp, ebp
cmp dword [ebx + 0x5c], ebp
jne 0x100311d0
push 1
push dword [esp + 0x14]
push ebx
call fcn.10031ed3
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x10030f39
cmp dword [ebx + 0x3dc], ebp
je 0x10031273
mov ebp, dword [ebx + 0xc4]
jmp 0x10031299
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 0x10031229
push eax
push ebx
call fcn.10030c93
or dword [ebx + ebp*4 + 0x1b0], 0xffffffff
pop ecx
pop ecx
push esi
push ebx
call fcn.10029b15
pop ecx
pop ecx
test eax, eax
jne 0x100312ba
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 0x10031258
push 4
push edi
call fcn.1003939f
pop ecx
pop ecx
push dword [ebx + esi*4 + 0x1a8]
push ebx
call fcn.100315f7
push ebx
call fcn.1002c664
add esp, 0xc
jmp 0x10030f39
cmp dword [ebx + 0x3d8], ebp
je 0x10031283
mov ebp, dword [ebx + 0xe4]
jmp 0x10031299
cmp dword [ebx + 0x3cc], ebp
je 0x10031293
mov ebp, dword [ebx + 0xb4]
jmp 0x10031299
mov ebp, dword [ebx + 0xa0]
push esi
push ebx
call fcn.1003cb1a
push eax
push dword [ebx + 0xfc]
push ebp
push str.Failed_to_connect_to__s_port__ld:__s
push edi
call fcn.1003054c
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.1005ae75
add esp, 0x7c
ret