Function at 0x407470
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41adde
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x423040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0040bee0
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.0040bee0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0041960a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0040f810
lea eax, [ebx + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x38]
call fcn.0040bee0
lea eax, [ebx + 0x50]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x50]
call fcn.0040bee0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x6c]
mov eax, dword [ebx + 0x68]
mov dword [edi + 0x68], eax
lea eax, [ebx + 0x6c]
push eax
call fcn.0040bee0
mov byte [ebp - 4], 6
lea ecx, [edi + 0x88]
mov eax, dword [ebx + 0x84]
mov dword [edi + 0x84], eax
lea eax, [ebx + 0x88]
push eax
call fcn.0040bee0
lea eax, [ebx + 0xa0]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xa0]
call fcn.0040bee0
lea esi, [edi + 0xb8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x10], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0041960a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0xb8]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.0040f810
lea esi, [edi + 0xc0]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x10], esi
push 0x88
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0041960a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0xc0]
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.0040f790
mov byte [ebp - 4], 0xc
lea esi, [edi + 0xc8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebx + 0xcc]
sub eax, dword [ebx + 0xc8]
sar eax, 3
mov dword [ebp - 0x10], esi
test eax, eax
je 0x40767f
cmp eax, 0x1fffffff
ja 0x4078d1
push eax
mov ecx, esi
call fcn.004107b0
mov edi, dword [esi]
mov esi, dword [ebx + 0xcc]
mov eax, dword [ebx + 0xc8]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x10]
add esp, 0xc
sar esi, 3
lea eax, [edi + esi*8]
mov edi, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0xd
lea esi, [edi + 0xd4]
mov dword [ebp - 0x10], esi
mov eax, dword [ebx + 0xd4]
mov dword [esi], eax
mov al, byte [ebx + 0xd8]
mov byte [esi + 4], al
mov eax, 0x2aaaaaab
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov ecx, dword [ebx + 0xe0]
sub ecx, dword [ebx + 0xdc]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x407721
cmp eax, 0x15555555
ja 0x4078d6
push eax
lea ecx, [esi + 8]
call fcn.00410720
mov edi, dword [esi + 8]
mov esi, dword [ebx + 0xe0]
mov eax, dword [ebx + 0xdc]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
imul esi
add esp, 0xc
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
mov edi, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
jmp 0x407727
lea ecx, [edi + 0xd4]
movq xmm0, qword [ebx + 0xe8]
movq qword [ecx + 0x14], xmm0
mov eax, dword [ebx + 0xf0]
mov dword [ecx + 0x1c], eax
movq xmm0, qword [ebx + 0xf4]
movq qword [ecx + 0x20], xmm0
mov eax, dword [ebx + 0xfc]
mov dword [ecx + 0x28], eax
movq xmm0, qword [ebx + 0x100]
movq qword [ecx + 0x2c], xmm0
mov eax, dword [ebx + 0x108]
mov dword [ecx + 0x34], eax
mov byte [ebp - 4], 0xe
lea esi, [edi + 0x10c]
mov dword [ebp - 0x10], esi
mov eax, dword [ebx + 0x10c]
mov dword [esi], eax
push 0x38
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0041960a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 0x10
mov eax, dword [ebx + 0x124]
push dword [esi + 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x128]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x11c]
sub eax, dword [ebx + 0x118]
sar eax, 2
push eax
call fcn.0040c580
mov eax, dword [ebx + 0x110]
mov ecx, esi
push eax
push dword [eax]
call fcn.00411a30
lea esi, [edi + 0x130]
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebx + 0x154]
test ecx, ecx
je 0x407819
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea esi, [edi + 0x158]
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebx + 0x17c]
test ecx, ecx
je 0x40783f
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea esi, [edi + 0x180]
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0x16
mov ecx, dword [ebx + 0x1a4]
test ecx, ecx
je 0x407865
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x1a8]
lea esi, [edi + 0x1b0]
mov dword [edi + 0x1a8], eax
mov eax, dword [ebx + 0x1ac]
mov dword [edi + 0x1ac], eax
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebx + 0x1d4]
test ecx, ecx
je 0x4078a3
mov edx, dword [ecx]
push esi
call dword [edx]
mov dword [esi + 0x24], eax
mov cl, byte [ebx + 0x1d8]
mov eax, edi
mov byte [edi + 0x1d8], cl
mov ecx, dword [ebx + 0x1dc]
mov dword [edi + 0x1dc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00410710
call fcn.00410710
int3