Function at 0x10128ef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x103fbc90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Creating_agent
push 0x44
push 0x103e0a30
push 0
call fcn.10126d90
add esp, 0x10
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10128f4e
push 0x103e0a84
push 0x49
push 0x103e0a98
push 5
call fcn.10126d90
add esp, 0x10
xor eax, eax
jmp 0x10129203
push 0xad30
push 1
call fcn.1031ab73
add esp, 8
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x10128f89
push str.Memory_allocation_for_agent_failed
push 0x50
push 0x103e0b10
push 5
call fcn.10126d90
add esp, 0x10
xor eax, eax
jmp 0x10129203
mov ecx, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x198]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x198]
cmp dword [ecx + 4], 0
je 0x10128fe7
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 4]
push eax
call fcn.1012f7c0
add esp, 4
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x198]
cmp dword [edx + 4], 0
jne 0x10128fe7
push str.Memory_allocation_for_STUN_server_host_failed
push 0x59
push 0x103e0bd0
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x101291f2
mov eax, dword [ebp - 0x198]
cmp dword [eax + 0x10], 0
je 0x1012912c
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x10]
shl edx, 4
mov dword [ebp - 0x1a4], edx
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0xc]
push edx
call fcn.1012f800
add esp, 8
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0xc], 0
jne 0x10129052
push 0x103e0b94
push 0x62
push 0x103e0c60
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x101291f2
mov dword [ebp - 0x1a0], 0
jmp 0x1012906d
mov eax, dword [ebp - 0x1a0]
add eax, 1
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ebp - 0x1a0]
cmp edx, dword [ecx + 0x10]
jge 0x1012912c
mov eax, dword [ebp - 0x1a0]
shl eax, 4
mov ecx, dword [ebp - 0x198]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x19c], eax
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx]
push eax
call fcn.1012f7c0
add esp, 4
mov ecx, dword [ebp - 0x19c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 4]
push eax
call fcn.1012f7c0
add esp, 4
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 8]
push eax
call fcn.1012f7c0
add esp, 4
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x19c]
cmp dword [edx], 0
je 0x1012910c
mov eax, dword [ebp - 0x19c]
cmp dword [eax + 4], 0
je 0x1012910c
mov ecx, dword [ebp - 0x19c]
cmp dword [ecx + 8], 0
jne 0x10129127
push str.Memory_allocation_for_TURN_server_credentials_array_failed
push 0x6c
push 0x103e0ce0
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x101291f2
jmp 0x1012905e
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x14], 0
je 0x10129177
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.1012f7c0
add esp, 4
mov edx, dword [ebp - 0x198]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x198]
cmp dword [eax + 0x14], 0
jne 0x10129177
push 0x103e0cb4
push 0x75
push 0x103e0d48
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x101291f2
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x198]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x198]
mov dword [eax + 0xad04], 0
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0xad1c], 0xffffffff
mov edx, dword [ebp - 0x198]
mov dword [edx + 0xad20], 0
mov eax, dword [ebp - 0x198]
add eax, 0x38
push eax
call fcn.10127e40
add esp, 4
push 8
mov ecx, dword [ebp - 0x198]
add ecx, 0xad08
push ecx
call fcn.10132c90
add esp, 8
mov eax, dword [ebp - 0x198]
jmp 0x10129203
mov edx, dword [ebp - 0x198]
push edx
call fcn.10129220
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10314cf5
mov esp, ebp
pop ebp
ret