Function at 0x2040ca10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x2047d3cc
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24]
xor ebp, ebp
mov dword [ebx + 8], ebp
lea esi, [ebx + 0x10]
mov dword [ebx + 0xc], ebp
mov dword [esi], vtable.CArray_class_CIPv6Addr__class_CIPv6Addr_.0
mov dword [esi + 4], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
mov dword [esp + 0x1c], ebp
mov dword [ebx + 0x24], vtable.CArray_class_CIPv6Addr__class_CIPv6Addr_.0
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x2c], ebp
mov byte [esp + 0x1c], 1
mov dword [ebx + 0x38], vtable.CArray_class_CIPv6Addr__class_CIPv6Addr_.0
mov dword [ebx + 0x3c], ebp
mov dword [ebx + 0x48], ebp
mov dword [ebx + 0x44], ebp
mov dword [ebx + 0x40], ebp
mov byte [esp + 0x1c], 2
mov dword [ebx + 0x4c], vtable.CArray_class_CIPv4Addr__class_CIPv4Addr_.0
mov dword [ebx + 0x50], ebp
mov dword [ebx + 0x5c], ebp
mov dword [ebx + 0x58], ebp
mov dword [ebx + 0x54], ebp
mov byte [esp + 0x1c], 3
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 0xc], ecx
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x2040cac4
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
mov eax, dword [ebx + 0x28]
cmp eax, ebp
je 0x2040cadd
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x2c], ebp
mov eax, dword [ebx + 0x3c]
cmp eax, ebp
je 0x2040caf6
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [ebx + 0x3c], ebp
mov dword [ebx + 0x44], ebp
mov dword [ebx + 0x40], ebp
mov eax, dword [ebx + 0x50]
cmp eax, ebp
je 0x2040cb0f
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [ebx + 0x50], ebp
mov dword [ebx + 0x58], ebp
mov dword [ebx + 0x54], ebp
cmp dword [edi + 0x18], ebp
jle 0x2040cb42
lea eax, [edi + 0x10]
cmp esi, eax
je 0x2040cb42
mov edi, dword [eax + 8]
call fcn.2040d610
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x14]
add eax, 0x10
mov eax, dword [esi + 4]
call fcn.2040d860
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x2c], ebp
jle 0x2040cb75
lea eax, [edi + 0x24]
lea ecx, [ebx + 0x24]
cmp ecx, eax
je 0x2040cb75
mov edi, dword [eax + 8]
lea esi, [ebx + 0x24]
call fcn.2040d610
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x28]
add eax, 0x24
mov eax, dword [ebx + 0x28]
call fcn.2040d860
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x40], ebp
jle 0x2040cba8
lea eax, [edi + 0x38]
lea ecx, [ebx + 0x38]
cmp ecx, eax
je 0x2040cba8
mov edi, dword [eax + 8]
lea esi, [ebx + 0x38]
call fcn.2040d610
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x3c]
add eax, 0x38
mov eax, dword [ebx + 0x3c]
call fcn.2040d860
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x54], ebp
jle 0x2040cbc4
mov eax, dword [esp + 0x24]
lea ebx, [edi + 0x4c]
add eax, 0x4c
call fcn.2040d4f0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dl, byte [edi + 0x60]
mov byte [ebx + 0x60], dl
mov dword [ebx], ebp
mov eax, dword [edi]
cmp eax, ebp
je 0x2040cc2d
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x2040cbd5
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esp + 0x2c]
mov dword [ebx], eax
mov edx, dword [ecx]
mov ecx, edx
add esp, 4
lea edi, [ecx + 2]
lea ecx, [ecx]
mov si, word [ecx]
add ecx, 2
cmp si, bp
jne 0x2040cc10
sub ecx, edi
sar ecx, 1
lea esi, [ecx + 1]
mov edi, eax
call fcn.20404cb0
mov edi, dword [esp + 0x28]
mov dword [ebx + 4], ebp
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x2040cc99
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x2040cc40
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
mov edx, dword [ecx + 4]
mov ecx, edx
add esp, 4
lea edi, [ecx + 2]
lea ebx, [ebx]
mov si, word [ecx]
add ecx, 2
cmp si, bp
jne 0x2040cc80
sub ecx, edi
sar ecx, 1
lea esi, [ecx + 1]
mov edi, eax
call fcn.20404cb0
mov dword [esp + 0x1c], 0xffffffff
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8