Function at 0x12d9f190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x9c8
push ebx
push ebp
mov ebp, dword [esp + 0x9d4]
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x86
xor eax, eax
lea edi, [esp + 0x7c0]
mov dword [esp + 0x7b8], ebx
mov dword [esp + 0x7bc], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x7b8]
mov ecx, 0x131987c8
push eax
push ebp
call fcn.12da0440
test eax, eax
jne 0x12d9f50d
mov ecx, 0x1db
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x9e0]
mov dword [esp + 0x18], 0x10
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
je 0x12d9f252
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x9e8]
push edx
push ecx
push eax
call fcn.12e4ee40
mov eax, dword [0x13199068]
add esp, 0x10
cmp eax, ebx
je 0x12d9f2cb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and edx, 0xffff
push edx
push eax
push str.CConnTrack::AddTableItem_1_1___08x___d_
push str.TUploadCtrl
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
jmp 0x12d9f2cb
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x2a], ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x2e], ecx
push edx
mov dword [esp + 0x36], ecx
push eax
push ebp
mov word [esp + 0x34], bx
mov word [esp + 0x42], cx
call dword [sym.imp.WS2_32.dll_getpeername]
mov edi, eax
cmp edi, 0xffffffff
je 0x12d9f29e
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.12e4ee40
add esp, 0x10
cmp dword [0x13199068], ebx
je 0x12d9f2cb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and edx, 0xffff
push edx
push eax
push edi
push str.CConnTrack::AddTableItem_1_2___d___08x___d_
push str.TUploadCtrl
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x3a], ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x3e], ecx
push edx
mov dword [esp + 0x46], ecx
push eax
push ebp
mov dword [esp + 0x24], 0x10
mov word [esp + 0x44], bx
mov word [esp + 0x52], cx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, eax
cmp edi, 0xffffffff
je 0x12d9f327
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.12e4ee40
add esp, 0x10
cmp dword [0x13199068], ebx
je 0x12d9f381
push edi
push str.CConnTrack::AddTableItem_2___d_
push str.TUploadCtrl
push 0xffffffffffffffff
call fcn.12dad750
mov eax, dword [0x13199068]
add esp, 0x10
cmp eax, ebx
je 0x12d9f381
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
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 eax, 1
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 8]
mov dword [esp + 0x7a0], eax
mov ax, word [esp + 0x1c]
mov dword [esp + 0x7a8], edx
mov word [esp + 0x7ac], ax
mov eax, ebp
shr eax, 4
xor edx, edx
mov cx, word [esp + 0x10]
div edi
mov word [esp + 0x7a4], cx
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], ebp
cmp ecx, ebx
mov dword [esp + 0x54], 3
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x794], ebx
mov dword [esp + 0x798], ebx
mov dword [esp + 0x79c], ebx
mov dword [esp + 0x24], edi
mov ebp, edx
je 0x12d9f455
mov eax, dword [ecx + ebp*4]
cmp eax, ebx
je 0x12d9f451
mov edx, dword [esp + 0x9dc]
cmp dword [eax + 8], edx
je 0x12d9f449
mov eax, dword [eax]
cmp eax, ebx
jne 0x12d9f435
jmp 0x12d9f451
cmp eax, ebx
jne 0x12d9f4ff
cmp ecx, ebx
jne 0x12d9f481
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 + 0x24]
mov dword [esi + 8], eax
cmp dword [esi + 0x10], ebx
jne 0x12d9f4c4
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 0x12d9f4c4
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x780
dec ecx
jne 0x12d9f4b4
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 ecx, dword [esp + 0x9dc]
mov dword [edx + 4], ebp
mov dword [edx + 8], ecx
mov ecx, dword [esi + 4]
mov eax, edx
mov ecx, dword [ecx + ebp*4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [ecx + ebp*4], edx
lea edi, [eax + 0x10]
mov ecx, 0x1dc
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c8
ret 0xc