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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xb8
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x14]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x6c], eax
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], ecx
test byte [0x646cf018], 1
jne 0x646cc620
or edi, esi
mov dword [ebp - 0x7c], 0x57
jne 0x646cc5fe
test ebx, ebx
je 0x646cc610
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x646cc610
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x646cc610
mov eax, dword [ebp - 0x6c]
cmp eax, 0x1f4
ja 0x646cc610
lea ecx, [ebp - 0x60]
mov esi, ebx
xor edi, edi
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x646cc673
mov dword [ebp - 0x70], ebx
mov ebx, edi
mov edi, dword [ebp - 0x80]
jmp 0x646cc5dd
inc ebx
add esi, 0x1c
cmp dword [ebp - 0x6c], ebx
je 0x646cc670
mov edx, edi
mov eax, esi
call sym._map_address_6to4
test eax, eax
jne 0x646cc5d0
mov dword [ebp - 0x7c], 0x32
test byte [0x646cf018], 1
jne 0x646cc850
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 0x646cc5fe
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 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 sym._wine_dbg_log.constprop.0
jmp 0x646cc587
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 0x646cc9de
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 0x646cc9b8
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x646cc970
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0
mov esi, ebx
lea eax, [eax + edi*8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x80], eax
jmp 0x646cc77c
test byte [0x646cf018], 1
jne 0x646cc880
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov ecx, 7
mov edi, dword [edx + eax*8]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [edx + eax*8]
mov edx, 0x17
mov word [eax], dx
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
add esi, 0x1c
add dword [ebp - 0x78], 0x38
mov dword [eax + edx*8 + 4], ebx
mov eax, dword [esi - 0x1c]
inc edx
mov dword [ebp - 0x70], edx
mov dword [ebx], eax
mov eax, dword [esi - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [esi - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [esi - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [esi - 8]
mov dword [ebx + 0x14], eax
mov eax, dword [esi - 4]
mov dword [ebx + 0x18], eax
cmp dword [ebp - 0x6c], edx
je 0x646cc970
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x80]
lea ebx, [eax + 0x1c]
mov dword [ecx + edi*8], eax
mov eax, esi
call sym._map_address_6to4
test eax, eax
je 0x646cc708
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x64]
mov eax, dword [eax + ecx*8]
mov dword [esp + 4], 0
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym.iphlpapi.dll_GetBestRoute
sub esp, 0xc
test eax, eax
jne 0x646cc708
mov ecx, dword [edi]
mov edx, edi
mov edi, dword [ebp - 0x40]
add edx, 8
test ecx, ecx
jne 0x646cc7fc
jmp 0x646cc708
inc eax
add edx, 0x18
cmp eax, ecx
je 0x646cc708
cmp dword [edx], edi
jne 0x646cc7f0
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov dword [ecx], 0x17
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0xffff0000
mov edx, dword [eax + 4]
mov word [ecx + 0x14], dx
movzx eax, word [eax + 6]
mov word [ecx + 0x16], ax
jmp 0x646cc735
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 sym._wine_dbg_log.constprop.0
jmp 0x646cc5fe
xor eax, eax
mov dword [ebp - 0x8c], ebx
mov ebx, esi
xor ecx, ecx
lea edx, [ebp - 0x50]
cmp word [ebx + eax*2 + 8], 0
lea edi, [eax + 1]
mov esi, edx
jne 0x646cc8c7
lea esi, [esi]
test eax, eax
je 0x646cc950
test ecx, ecx
jne 0x646cc8b5
mov byte [esi], 0x3a
mov ecx, 1
inc esi
cmp edi, 7
je 0x646cc8f0
mov eax, edi
cmp word [ebx + eax*2 + 8], 0
lea edi, [eax + 1]
je 0x646cc8a0
movzx eax, word [ebx + edi*2 + 6]
mov dword [esp], esi
mov dword [esp + 4], 0x646d18a6
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
call sym._sprintf
xor ecx, ecx
add esi, eax
cmp edi, 7
jne 0x646cc8ba
mov edx, esi
mov esi, ebx
mov ebx, dword [ebp - 0x8c]
movzx eax, word [esi + 0x16]
mov dword [esp + 4], 0x646d18aa
mov dword [esp], edx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
call sym._sprintf
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 sym._wine_dbg_log.constprop.0
jmp 0x646cc715
lea eax, [esi + 1]
mov byte [esi], 0x3a
mov esi, eax
test ecx, ecx
je 0x646cc8ac
mov eax, edi
jmp 0x646cc8bc
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x64]
mov dword [eax], ebx
mov eax, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x6c]
mov dword [eax], ebx
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 0x646cc5fe
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 0x646cc5fe
mov dword [ebp - 0x7c], 8
jmp 0x646cc5fe