Function at 0x405f80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Check os version
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1e0
mov esi, esp
mov dword [esi + 0x1c8], ebp
mov dword [esi + 0x1cc], esp
mov dword [esi + 0x1d8], 0xffffffff
mov dword [esi + 0x1d4], 0x406360
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
lea edx, [esi + 0x1d0]
mov ecx, dword fs:[0]
mov dword [esi + 0x1d0], ecx
mov dword fs:[0], edx
mov byte [esi + 2], 1
mov dword [esi + 0x1d8], 0
lea edx, [esi + 0x58]
push edi
push eax
push edx
call fcn.004277b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [esi + 0x58], 2
movzx ebx, byte [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], ecx
mov dword [esi + 0xc], edx
mov byte [esi + 3], bl
mov dword [esi + 0x20], eax
jne 0x40603f
mov edi, dword [esi + 0x5c]
cmp bl, 0xa
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 3
jb 0x40603a
test edx, edx
je 0x40603a
push 1
push edx
push ecx
call fcn.00407080
add esp, 0xc
jmp 0x406179
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x1d8], 1
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 8], eax
lea eax, [esi + 0xa0]
push eax
call fcn.0056d400
add esp, 4
mov eax, dword [ebp + 0x10]
movsd xmm1, qword [esi + 0x60]
movsd xmm2, qword [esi + 0x7c]
movsd xmm0, qword [esi + 0x58]
mov edi, dword [esi + 0xa8]
inc eax
movsd qword [esi + 0x124], xmm1
movsd xmm1, qword [esi + 0x74]
movsd qword [esi + 0x30], xmm2
movsd xmm2, qword [esi + 0x8c]
movsd qword [esi + 0x11c], xmm0
movzx ecx, byte [eax + 2]
movzx eax, word [eax]
movsd qword [esi + 0x28], xmm1
movsd xmm1, qword [esi + 0x84]
movsd qword [esi + 0x40], xmm2
movsd xmm2, qword [esi + 0xac]
mov word [esi + 4], ax
mov eax, dword [esi + 0x68]
mov byte [esi + 6], cl
movsd qword [esi + 0x38], xmm1
movsd xmm1, qword [esi + 0x94]
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x9c]
movsd qword [esi + 0xe8], xmm2
movsd xmm2, qword [esi + 0xbc]
movsd qword [esi + 0x48], xmm1
movsd xmm1, qword [esi + 0xb4]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0xa0]
movsd qword [esi + 0xf8], xmm2
movsd xmm2, qword [esi + 0xcc]
movsd qword [esi + 0xf0], xmm1
movsd xmm1, qword [esi + 0xc4]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0xa4]
movsd qword [esi + 0x108], xmm2
movsd qword [esi + 0x100], xmm1
movsd xmm1, qword [esi + 0xd4]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xdc]
movsd qword [esi + 0x110], xmm1
mov dword [esi + 0x118], eax
lea eax, [esi + 0xe8]
push 0x48
push eax
lea eax, [esi + 0xa0]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 0x10]
lock inc dword [ebx]
jle 0x4062d5
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], edx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0xa0]
mov dword [esi + 0xec], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xf0], edi
lea eax, [esi + 0xf4]
push 0x48
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x10]
movsd xmm1, qword [esi + 0x30]
movsd xmm0, qword [esi + 0x28]
movsd xmm2, qword [esi + 0x40]
mov byte [esi + 2], 0
mov dword [esi + 0x1d8], 0
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x50]
movsd qword [esi + 0x14c], xmm1
movsd xmm1, qword [esi + 0x38]
movsd qword [esi + 0x144], xmm0
movsd qword [esi + 0x15c], xmm2
mov dword [esi + 0x16c], eax
movsd qword [esi + 0x154], xmm1
movsd xmm1, qword [esi + 0x48]
movzx eax, byte [esi + 3]
movsd qword [esi + 0x164], xmm1
mov dword [esi + 0x178], 0x3b9aca00
mov dword [esi + 0x180], 0
mov byte [esi + 0x194], al
movzx eax, word [esi + 4]
mov word [esi + 0x195], ax
movzx eax, byte [esi + 6]
mov byte [esi + 0x197], al
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x19c], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x1a4], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1a0], eax
lea eax, [esi + 0xe8]
mov byte [esi + 0x1a8], 2
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 3
push eax
lea eax, [esi + 0x58]
push eax
push dword [ebp + 8]
call fcn.00420910
add esp, 0xc
mov eax, dword [esi + 0x1d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2