Function at 0x646cc300
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force 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, 0x58
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 4]
test byte [0x646cf018], 8
jne 0x646cc438
test esi, esi
je 0x646cc473
mov dword [esp + 0xc], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym.iphlpapi.dll_AllocateAndGetIpForwardTableFromStack
mov dword [ebp - 0x2c], eax
sub esp, 0x10
test eax, eax
jne 0x646cc41a
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
mov dword [ebp - 0x3c], eax
test edi, edi
je 0x646cc3ec
mov dword [ebp - 0x40], esi
lea ecx, [eax + 4]
mov esi, dword [ebp - 0x34]
xor ebx, ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], 0
jmp 0x646cc398
inc ebx
add ecx, 0x38
cmp edi, ebx
je 0x646cc3e0
cmp dword [ecx + 0x14], 2
je 0x646cc390
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
xor edx, esi
and edx, eax
jne 0x646cc390
test eax, eax
je 0x646cc480
test al, 1
jne 0x646cc3c4
jmp 0x646cc480
test al, 1
je 0x646cc3c9
inc edx
shr eax, 1
jne 0x646cc3c0
cmp edx, dword [ebp - 0x38]
jbe 0x646cc480
mov dword [ebp - 0x30], ebx
inc ebx
add ecx, 0x38
mov dword [ebp - 0x38], edx
cmp edi, ebx
jne 0x646cc398
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x30], edi
jb 0x646cc4d0
mov dword [ebp - 0x2c], 0x4d0
mov edi, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test byte [0x646cf018], 8
jne 0x646cc498
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.dwDestAddr_0x_08lx__dwSourceAddr_0x_08lx__pBestRoute__p_n
mov dword [esp + 8], str.GetBestRoute
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
jne 0x646cc334
mov dword [ebp - 0x2c], 0x57
jmp 0x646cc423
mov eax, dword [ebp - 0x38]
test eax, eax
mov eax, dword [ebp - 0x30]
cmove eax, ebx
mov dword [ebp - 0x30], eax
jmp 0x646cc390
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.returning__ld_n
mov dword [esp + 8], str.GetBestRoute
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x646cc423
imul eax, dword [ebp - 0x30], 0x38
mov edi, dword [ebp - 0x3c]
lea eax, [edi + eax + 4]
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [esi + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [esi + 0x28], edx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x2c], edx
mov edx, dword [eax + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [esi + 0x34], eax
jmp 0x646cc3f3