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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
lea ebp, [ecx + 4]
push esi
push edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x12d9f8b1
mov esi, dword [esp + 0x60]
xor edx, edx
mov eax, esi
shr eax, 4
div dword [ebp + 4]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x12d9f8b1
cmp dword [edx + 8], esi
je 0x12d9f8ad
mov edx, dword [edx]
test edx, edx
jne 0x12d9f896
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 8
test edx, edx
jne 0x12d9f8bd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 8
mov ebx, dword [esp + 0x64]
lea esi, [edx + 0x10]
mov ecx, 0x1dc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x758]
xor ecx, ecx
cmp edx, ecx
mov eax, 1
jne 0x12d9fab3
cmp word [ebx + 0x75c], cx
jne 0x12d9fab3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], ecx
mov word [esp + 0x24], cx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
mov edx, dword [ebx]
lea ecx, [esp + 0x24]
stosw word es:[edi], ax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x1c
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getpeername]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x12d9f955
lea eax, [ebx + 0x75c]
lea ecx, [esp + 0x24]
push eax
lea eax, [ebx + 0x758]
push eax
mov eax, dword [esp + 0x68]
push eax
push ecx
call fcn.12e4ee40
add esp, 0x10
mov dword [esp + 0x10], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
lea edx, [esp + 0x60]
stosw word es:[edi], ax
lea eax, [esp + 0x40]
push edx
push eax
push ecx
mov dword [esp + 0x6c], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
je 0x12d9f9b5
mov ecx, dword [esp + 0x60]
lea edx, [ebx + 0x764]
lea eax, [ebx + 0x760]
push edx
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.12e4ee40
add esp, 0x10
mov dword [esp + 0x64], eax
cmp esi, 0xffffffff
jne 0x12d9f9c2
cmp edi, esi
je 0x12d9fa60
mov edi, dword [ebx]
mov ecx, dword [ebp + 4]
mov eax, edi
xor edx, edx
shr eax, 4
div ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov esi, edx
mov edx, dword [ebp]
test edx, edx
je 0x12d9f9fd
mov eax, dword [edx + esi*4]
test eax, eax
je 0x12d9f9f9
cmp dword [eax + 8], edi
je 0x12d9f9f5
mov eax, dword [eax]
test eax, eax
jne 0x12d9f9e8
jmp 0x12d9f9f9
test eax, eax
jne 0x12d9fa4c
test edx, edx
jne 0x12d9fa31
lea edi, [ecx*4]
push edi
call fcn.12f5c05b
mov edx, eax
mov ecx, edi
mov dword [ebp], 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 + 0x14]
mov edi, dword [esp + 0x18]
mov dword [ebp + 4], eax
mov ecx, ebp
call fcn.12da1420
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov ecx, dword [ebp]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
mov ecx, dword [ebp]
mov dword [ecx + esi*4], eax
lea edi, [eax + 0x10]
mov ecx, 0x1dc
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, dword [0x13199068]
test eax, eax
je 0x12d9faae
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [ebx + 0x760]
xor ecx, ecx
push edi
mov cx, word [ebx + 0x764]
push eax
mov eax, dword [ebx + 0x758]
push esi
push ecx
xor ecx, ecx
mov cx, word [ebx + 0x75c]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
push str.CConnTrack::FindTableItem__socket:_08x__wRemotePort:_d__dwRemoteIP:_08X__localip:_08x__lpcalport____d__d____d__d_
push str.TUploadCtrl
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x30
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8