Function at 0x646cc970
Capabilities:
Enumerate pe sections
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xb8
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], eax
test byte [0x646cf018], 1
jne 0x646cca60
or esi, edi
mov dword [ebp - 0x7c], 0x57
jne 0x646cca38
test ebx, ebx
je 0x646cca50
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x646cca50
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x646cca50
mov eax, dword [ebp - 0x6c]
cmp eax, 0x1f4
ja 0x646cca50
lea ecx, [ebp - 0x60]
mov esi, ebx
xor edi, edi
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x646ccab3
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp - 0x80]
jmp 0x646cca17
add edi, 1
add esi, 0x1c
cmp dword [ebp - 0x6c], edi
je 0x646ccab0
mov edx, ebx
mov eax, esi
call fcn.646c2760
test eax, eax
jne 0x646cca08
mov dword [ebp - 0x7c], 0x32
test byte [0x646cf018], 1
jne 0x646ccc50
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov dword [ebp - 0x7c], 0x57
jmp 0x646cca38
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._src_list__p_src_count__lu_dst_list__p_dst_count__lu_options__lx_pair_list__p_pair_count__p_:_stub_n
mov dword [esp + 8], str.CreateSortedAddressPairs
mov dword [esp + 4], 0x646cf018
mov dword [esp], 0
call fcn.646c3090
jmp 0x646cc9b9
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
shl eax, 6
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x74], eax
sub esp, 0xc
test eax, eax
je 0x646cce46
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x64]
mov dword [esp], eax
call sym.iphlpapi.dll_AllocateAndGetIpAddrTableFromStack
mov dword [ebp - 0x7c], eax
sub esp, 0x10
test eax, eax
jne 0x646cce20
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x646ccc04
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x70], 0
lea eax, [eax + esi*8]
mov esi, ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x80], eax
lea esi, [esi]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x80]
lea edi, [eax + 0x1c]
mov dword [ecx + ebx*8], eax
mov eax, esi
call fcn.646c2760
test eax, eax
jne 0x646ccc80
test byte [0x646cf018], 1
jne 0x646ccd40
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov edx, dword [eax + ecx*8]
xor eax, eax
lea ecx, [edx + 4]
mov dword [edx], 0
and ecx, 0xfffffffc
mov dword [edx + 0x18], 0
sub edx, ecx
add edx, 0x1c
and edx, 0xfffffffc
mov dword [ecx + eax], 0
add eax, 4
cmp eax, edx
jb 0x646ccb9c
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov edx, 0x17
mov eax, dword [eax + ecx*8]
mov word [eax], dx
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
add esi, 0x1c
add dword [ebp - 0x78], 0x38
mov dword [eax + ebx*8 + 4], edi
mov eax, dword [esi - 0x1c]
add ebx, 1
mov dword [ebp - 0x70], ebx
mov dword [edi], eax
mov eax, dword [esi - 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi - 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi - 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi - 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi - 4]
mov dword [edi + 0x18], eax
cmp dword [ebp - 0x6c], ebx
jne 0x646ccb48
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x64]
mov dword [eax], esi
mov eax, dword [ebp - 0x88]
mov esi, dword [ebp - 0x6c]
mov dword [eax], esi
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x646cca38
mov dword [esp + 0xc], str.only_mapped_IPv4_addresses_are_supported_n
mov dword [esp + 8], str.CreateSortedAddressPairs
mov dword [esp + 4], 0x646cf018
mov dword [esp], 0
call fcn.646c3090
jmp 0x646cca38
lea eax, [ebp - 0x50]
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x64]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], ebx
mov dword [esp], eax
call sym.iphlpapi.dll_GetBestRoute
sub esp, 0xc
test eax, eax
jne 0x646ccb69
mov ecx, dword [ebx]
mov edx, ebx
mov ebx, dword [ebp - 0x40]
add edx, 8
test ecx, ecx
jne 0x646cccd6
jmp 0x646ccb69
add eax, 1
add edx, 0x18
cmp eax, ecx
je 0x646ccb69
cmp dword [edx], ebx
jne 0x646cccc8
mov ecx, dword [ebp - 0x78]
mov ebx, 0x17
xor edx, edx
lea eax, [eax + eax*2]
mov word [ecx], bx
xor ebx, ebx
mov word [ecx + 8], bx
xor ebx, ebx
mov word [ecx + 0xc], bx
xor ebx, ebx
mov word [ecx + 2], dx
xor edx, edx
mov word [ecx + 0x10], bx
mov ebx, dword [ebp - 0x8c]
mov word [ecx + 0xa], dx
xor edx, edx
mov word [ecx + 0xe], dx
lea eax, [ebx + eax*8]
mov edx, 0xffffffff
mov dword [ecx + 4], 0
mov word [ecx + 0x12], dx
mov edx, dword [eax + 4]
mov word [ecx + 0x14], dx
movzx eax, word [eax + 6]
mov word [ecx + 0x16], ax
jmp 0x646ccbbb
xor eax, eax
mov dword [ebp - 0x8c], edi
xor ecx, ecx
lea ebx, [ebp - 0x50]
movzx edx, word [esi + eax*2 + 8]
lea edi, [eax + 1]
test dx, dx
jne 0x646ccd8b
lea esi, [esi]
test eax, eax
je 0x646cce08
test ecx, ecx
jne 0x646ccd77
mov byte [ebx], 0x3a
mov ecx, 1
add ebx, 1
cmp edi, 7
je 0x646ccdaf
mov eax, edi
movzx edx, word [esi + eax*2 + 8]
lea edi, [eax + 1]
test dx, dx
je 0x646ccd60
rol dx, 8
mov dword [esp], ebx
movzx edx, dx
mov dword [esp + 4], 0x646d186e
mov dword [esp + 8], edx
call fcn.646c2f60
xor ecx, ecx
add ebx, eax
cmp edi, 7
jne 0x646ccd7c
movzx eax, word [esi + 0x16]
mov edi, dword [ebp - 0x8c]
mov dword [esp], ebx
mov dword [esp + 4], 0x646d1872
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
call fcn.646c2f60
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], str.source_address_for__s_not_found_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CreateSortedAddressPairs
mov dword [esp + 4], 0x646cf018
mov dword [esp], 0
call fcn.646c3090
jmp 0x646ccb76
lea eax, [ebx + 1]
mov byte [ebx], 0x3a
mov ebx, eax
test ecx, ecx
je 0x646ccd6c
mov eax, edi
jmp 0x646ccd7e
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x646cca38
mov dword [ebp - 0x7c], 8
jmp 0x646cca38