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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1bc
test dword [eax + 0x27c], 0x8000002
mov esi, dword [eax]
jne 0x436d20
lea eax, [esp + 0x2c]
mov ebp, edx
mov dword [esp + 0x2c], pe_nt_image_headers32
mov dword [esp], edx
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_getpeername]
sub esp, 0xc
test eax, eax
je 0x436e30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0x130]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0043e580
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.getpeername___failed_with_errno__d:__s
call fcn.00460000
add esp, 0x1bc
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [eax + 0x10a]
lea edi, [eax + 0x13c]
mov ecx, dword [ebp]
mov dword [esi + 0xe64], ecx
mov ecx, dword [ebp + 4]
mov dword [esi + 0xe68], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xe6c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xe70], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xe74], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xe78], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xe7c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0xe80], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0xe84], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esi + 0xe88], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esi + 0xe8c], ecx
movzx ecx, word [ebp + 0x2c]
mov word [esi + 0xe90], cx
mov ecx, dword [ebx]
mov esi, dword [edi]
lea eax, [ecx + 0xe98]
mov dword [ecx + 0xe98], esi
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [edi + 0x1c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [edi + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [edi + 0x24]
mov dword [eax + 0x24], ecx
mov ecx, dword [edi + 0x28]
mov dword [eax + 0x28], ecx
movzx edx, word [edi + 0x2c]
mov word [eax + 0x2c], dx
mov edx, dword [ebx + 0x290]
mov eax, dword [ebx]
mov ecx, dword [edx]
mov edx, dword [edx + 0x40]
mov dword [eax + 0xed0], edx
mov edx, dword [ebx + 0x138]
mov dword [eax + 0xecc], ecx
mov dword [eax + 0xe94], edx
mov edx, dword [ebx + 0x16c]
mov dword [eax + 0xec8], edx
add esp, 0x1bc
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0xb0]
mov ecx, 0x20
mov dword [esp + 0x2c], pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x436f95
movzx eax, word [esp + 0x30]
lea ebp, [ebx + 0x10a]
cmp ax, 2
je 0x436fe0
cmp ax, 0x17
jne 0x437008
lea eax, [esp + 0x38]
mov dword [esp + 0xc], 0x2e
mov dword [esp + 8], ebp
mov dword [esp], 0x17
mov dword [esp + 4], eax
call fcn.0043f9e0
test eax, eax
je 0x437008
movzx eax, word [esp + 0x32]
lea edi, [ebx + 0x13c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x1c], eax
call eax
mov edx, dword [ebx + 0x10a]
movzx eax, ax
sub esp, 4
mov dword [ebx + 0x138], eax
movzx eax, word [esp + 0xb0]
mov dword [ebx + 0x5c], edx
mov edx, dword [ebp + 4]
cmp ax, 2
mov dword [ebx + 0x60], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0x64], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x68], edx
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x6c], edx
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x70], edx
mov edx, dword [ebp + 0x18]
mov dword [ebx + 0x74], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebx + 0x78], edx
mov edx, dword [ebp + 0x20]
mov dword [ebx + 0x7c], edx
mov edx, dword [ebp + 0x24]
mov dword [ebx + 0x80], edx
mov edx, dword [ebp + 0x28]
mov dword [ebx + 0x84], edx
movzx edx, word [ebp + 0x2c]
mov word [ebx + 0x88], dx
je 0x437070
cmp ax, 0x17
jne 0x43709b
lea eax, [esp + 0xb8]
mov dword [esp + 0xc], 0x2e
mov dword [esp + 8], edi
mov dword [esp], 0x17
mov dword [esp + 4], eax
call fcn.0043f9e0
test eax, eax
je 0x43709b
movzx eax, word [esp + 0xb2]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call eax
movzx eax, ax
sub esp, 4
mov esi, dword [ebx]
mov dword [ebx + 0x16c], eax
jmp 0x436d2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0x130]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0043e580
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
call fcn.00460000
add esp, 0x1bc
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x34]
mov dword [esp + 0xc], 0x2e
mov dword [esp + 8], ebp
mov dword [esp], 2
mov dword [esp + 4], eax
call fcn.0043f9e0
test eax, eax
jne 0x436eaf
mov byte [ebx + 0x10a], 0
mov dword [ebx + 0x138], 0
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], 0x273f
call ebx
lea edx, [esp + 0x130]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0043e580
mov edi, eax
call ebx
mov dword [esp + 0xc], edi
mov eax, dword [eax]
mov dword [esp + 4], str.ssrem_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00460000
jmp 0x436e1f
lea eax, [esp + 0xb4]
mov dword [esp + 0xc], 0x2e
mov dword [esp + 8], edi
mov dword [esp], 2
mov dword [esp + 4], eax
call fcn.0043f9e0
test eax, eax
jne 0x436f71
mov byte [ebx + 0x13c], 0
mov dword [ebx + 0x16c], 0
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], 0x273f
call ebx
lea edx, [esp + 0x130]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0043e580
mov edi, eax
call ebx
mov dword [esp + 0xc], edi
mov eax, dword [eax]
mov dword [esp + 4], str.ssloc_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00460000
jmp 0x436e1f