Function at 0x1012fa80
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x103fbc90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Creating_server
push 0x68
push 0x103e84c0
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 0x1012fade
push str.WSAStartup_failed
push 0x6d
push 0x103e8540
push 5
call fcn.10126d90
add esp, 0x10
xor eax, eax
jmp 0x10130005
push 0x68
push 1
call fcn.1031ab73
add esp, 8
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x1012fb16
push str.Memory_allocation_for_server_data_failed
push 0x74
push 0x103e85a0
push 5
call fcn.10126d90
add esp, 0x10
xor eax, eax
jmp 0x10130005
push 8
push 0
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.103170a0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x18]
mov word [ebp - 0x1bc], dx
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x18]
mov word [ebp - 0x1ba], cx
lea edx, [ebp - 0x1c0]
push edx
call fcn.10139390
add esp, 4
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x50], 0xffffffff
jne 0x1012fba4
push str.Server_socket_opening_failed
push 0x80
push 0x103e8668
push 5
call fcn.10126d90
add esp, 0x10
mov eax, dword [ebp - 0x198]
push eax
call fcn.103201db
add esp, 4
xor eax, eax
jmp 0x10130005
mov ecx, dword [ebp - 0x198]
add ecx, 0x58
push ecx
call fcn.1012f990
add esp, 4
mov ecx, 9
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x198]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x10], 0
je 0x1012fc17
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10132b00
add esp, 4
mov edx, dword [ebp - 0x198]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x198]
cmp dword [eax + 0x10], 0
jne 0x1012fc17
push str.Memory_allocation_for_bind_address_failed
push 0x8c
push 0x103e86f0
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x1012fff4
mov ecx, dword [ebp - 0x198]
cmp dword [ecx + 0x14], 0
je 0x1012fc68
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0x14]
push eax
call fcn.10132b00
add esp, 4
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x14], 0
jne 0x1012fc68
push str.Memory_allocation_for_external_address_failed
push 0x94
push 0x103e8760
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x1012fff4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x1012fc8c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
movsx eax, byte [edx]
test eax, eax
je 0x1012fc8c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x1a8], edx
jmp 0x1012fc96
mov dword [ebp - 0x1a8], 0x103e8594
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
push ecx
call fcn.10132b00
add esp, 4
mov edx, dword [ebp - 0x198]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x198]
cmp dword [eax + 0x20], 0
jne 0x1012fce4
push str.Memory_allocation_for_realm_failed
push 0x9d
push 0x103e87d0
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x1012fff4
mov ecx, dword [ebp - 0x198]
cmp dword [ecx + 8], 0
jne 0x1012fcfd
mov edx, dword [ebp - 0x198]
mov dword [edx + 8], 0x3e8
mov eax, dword [ebp - 0x198]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x198]
cmp dword [ecx + 4], 0
jne 0x1012fd4e
push str.TURN_relaying_disabled__STUN_only_mode
push 0xa8
push 0x103e8870
push 2
call fcn.10126d90
add esp, 0x10
mov edx, dword [ebp - 0x198]
mov dword [edx + 0x60], 0
mov eax, dword [ebp - 0x198]
mov dword [eax + 0x64], 0
jmp 0x1012fec0
mov dword [ebp - 0x19c], 0
jmp 0x1012fd69
mov ecx, dword [ebp - 0x19c]
add ecx, 1
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x19c]
cmp eax, dword [edx + 4]
jge 0x1012fdf6
imul ecx, dword [ebp - 0x19c], 0xc
mov edx, dword [ebp - 0x198]
add ecx, dword [edx]
mov dword [ebp - 0x1a4], ecx
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 8]
jge 0x1012fdb5
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
push 0
push 0
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
call fcn.10130350
add esp, 0x10
test eax, eax
jne 0x1012fdf1
push str.Failed_to_add_TURN_credentials
push 0xb5
push 0x103e88f8
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x1012fff4
jmp 0x1012fd5a
mov edx, dword [ebp - 0x198]
mov dword [edx], 0
mov eax, dword [ebp - 0x198]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x1a0], edx
cmp dword [ebp - 0x1a0], 0
je 0x1012fe64
mov eax, dword [ebp - 0x1a0]
add eax, 4
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
cmp dword [ecx + 8], 0
jne 0x1012fe54
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx]
mov dword [ebp - 0x1a0], eax
jmp 0x1012fe1e
push 0xc8
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 8]
push edx
call fcn.1031ab73
add esp, 8
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x60], 0
jne 0x1012feae
push 0x103e86bc
push 0xc8
push 0x103e8960
push 5
call fcn.10126d90
add esp, 0x10
jmp 0x1012fff4
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 8]
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 0x50]
push ecx
call fcn.10139d00
add esp, 4
mov edx, dword [ebp - 0x198]
mov word [edx + 0x18], ax
mov eax, dword [ebp - 0x198]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x198]
cmp dword [eax + 0xc], 0
jne 0x1012ff05
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0xc], 0x10
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x10], 0
je 0x1012ff41
mov eax, dword [ebp - 0x198]
movzx ecx, word [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0x10]
push eax
push str.Created_server_on__s:_hu
push 0xd4
push 0x103e89d0
push 2
call fcn.10126d90
add esp, 0x18
jmp 0x1012ff65
mov ecx, dword [ebp - 0x198]
movzx edx, word [ecx + 0x18]
push edx
push str.Created_server_on_port__hu
push 0xd6
push 0x103e8a58
push 2
call fcn.10126d90
add esp, 0x14
push 0
push 0
mov eax, dword [ebp - 0x198]
push eax
push 0x10132c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ebp - 0x1b0]
mov dword [ecx + 0x54], edx
cmp dword [ebp - 0x1b0], 0
je 0x1012ffa9
mov dword [ebp - 0x1b4], 0
jmp 0x1012ffb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x1012ffec
mov ecx, dword [ebp - 0x1b8]
push ecx
push 0x103e884c
push 0xda
push 0x103e8ac0
push 5
call fcn.10126d90
add esp, 0x14
jmp 0x1012fff4
mov eax, dword [ebp - 0x198]
jmp 0x10130005
mov edx, dword [ebp - 0x198]
push edx
call fcn.10130020
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