Function at 0x12d9eec0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c0
push ebx
push ebp
mov ebp, dword [esp + 0x9cc]
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x86
xor eax, eax
lea edi, [esp + 0x7b8]
mov dword [esp + 0x7b0], ebx
mov dword [esp + 0x7b4], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x7b0]
mov ecx, 0x131987c8
push eax
push ebp
call fcn.12da0440
test eax, eax
jne 0x12d9f17d
mov ecx, 0x1db
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x22], ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x26], ecx
push edx
mov edi, 0x10
mov dword [esp + 0x2e], ecx
push eax
push ebp
mov dword [esp + 0x28], edi
mov word [esp + 0x2c], bx
mov word [esp + 0x3a], cx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x12d9ef76
mov ecx, dword [esp + 0x22]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x32], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x36], eax
push ecx
mov dword [esp + 0x3e], eax
push edx
mov dword [esp + 0x24], edi
push ebp
mov word [esp + 0x3c], bx
mov word [esp + 0x4a], ax
mov dword [esp + 0x1c], ebx
xor edi, edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x12d9efca
mov eax, dword [esp + 0x32]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x34]
mov edi, eax
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x10], eax
cmp dword [0x13199068], ebx
je 0x12d9f004
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, edi
push edx
mov edx, dword [esp + 0x18]
and eax, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push ebp
push str.CConnTrack::AddTableItem__socket:_08x__usRemotePort:_d__dwRemoteIP:_08X__usLocalPort:_d__dwLocalIP:_08X_
push str.TUploadCtrl
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x20
mov edx, dword [esp + 0x10]
mov eax, 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x798], eax
mov eax, ebp
mov dword [esp + 0x7a0], edx
mov word [esp + 0x7a4], di
mov edi, dword [esi + 8]
xor edx, edx
shr eax, 4
div edi
mov cx, word [esp + 0x14]
mov dword [esp + 0x4c], 3
mov word [esp + 0x79c], cx
mov ecx, dword [esi + 4]
cmp ecx, ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78c], ebx
mov dword [esp + 0x790], ebx
mov dword [esp + 0x794], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
je 0x12d9f0ca
mov eax, dword [ecx + edx*4]
cmp eax, ebx
je 0x12d9f0c6
cmp dword [eax + 8], ebp
je 0x12d9f0bc
mov eax, dword [eax]
cmp eax, ebx
jne 0x12d9f0af
jmp 0x12d9f0c6
cmp eax, ebx
mov edx, eax
jne 0x12d9f16f
cmp ecx, ebx
jne 0x12d9f0f6
shl edi, 2
push edi
call fcn.12f5c05b
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
cmp dword [esi + 0x10], ebx
jne 0x12d9f139
mov ecx, dword [esi + 0x18]
push 0x780
lea edx, [esi + 0x14]
push ecx
push edx
call fcn.12f54aa0
mov ecx, dword [esi + 0x18]
add eax, 8
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
shl edx, 7
dec ecx
cmp ecx, ebx
lea eax, [eax + edx - 0x780]
jl 0x12d9f139
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x780
dec ecx
jne 0x12d9f129
mov edx, dword [esi + 0x10]
mov ecx, 0x1dc
mov eax, dword [edx]
lea edi, [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [edx + 8], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 8], ebp
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], edx
lea edi, [edx + 0x10]
mov ecx, 0x1dc
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c0
ret 4