Function at 0x10040850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eda0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10122fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xcc], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0xd0]
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x64], 0
movups xmmword [eax + 0x6c], xmm0
movq qword [eax + 0x7c], xmm0
mov dword [eax + 0x84], 0
mov dword [eax + 0x94], 0
mov dword [eax + 0x90], 0
mov dword [eax + 0x98], 0
mov byte [ebp - 4], 1
mov dword [eax + 0xbc], 0
mov dword [eax + 0xb8], 0
mov dword [eax + 0xc0], 0
mov byte [ebp - 4], 2
mov dword [eax + 0xc8], 0
mov dword [eax + 0xc4], 0
mov dword [eax + 0xcc], 0
mov byte [ebp - 4], 4
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x1a4], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1ac], 0
xor eax, eax
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0
mov dword [edi + 0x1cc], 0
mov dword [edi + 0x1d0], 0
mov dword [edi + 0x1d4], 0
mov dword [edi + 0x1d8], 0
mov dword [edi + 0x1dc], 0
mov dword [edi + 0x1e0], 0
mov dword [edi + 0x1e4], 0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0
mov dword [edi + 0x1f0], 0
mov dword [edi + 0x1f4], 0
mov dword [edi + 0x1f8], 0
mov dword [edi + 0x1fc], 0
mov dword [edi + 0x200], 0
mov dword [edi + 0x204], 0
mov dword [edi + 0x208], 0
mov dword [edi + 0x20c], 0
mov dword [edi + 0x210], eax
mov dword [edi + 0x214], eax
lea eax, [edi + 0x224]
mov dword [ebp - 0x18], eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 6
mov dword [edi + 0x234], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x238], 0
mov byte [ebp - 4], 7
lea ecx, [edi + 0x248]
push 0
call fcn.1003f240
mov byte [ebp - 4], 8
lea eax, [edi + 0x2fc]
mov ecx, 2
nop dword [eax]
nop word [eax + eax]
mov dword [eax], 0
lea eax, [eax + 0x10]
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub ecx, 1
jne 0x10040c30
push 0x328
push ecx
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10040c68
mov eax, dword [0x10124144]
sub esi, ecx
test eax, eax
je 0x10040c80
inc dword [eax + 0x36c]
push dword [0x1012414c]
inc esi
push esi
call dword [0x10120078]
push esi
mov esi, dword [ebp + 0xc]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, esi
mov dword [edi], eax
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040ca3
sub ecx, edx
push 0
push 0
push esi
lea eax, [ecx + 1]
mov dword [edi + 0x4c], eax
call fcn.100481e0
mov dword [edi + 4], eax
add esp, 0xc
mov esi, dword [edi + 0xc4]
mov ecx, dword [edi + 0xc8]
cmp esi, ecx
jne 0x10040d73
inc esi
test ecx, ecx
je 0x10040ce6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10040ceb
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x10040d73
mov eax, dword [0x10124144]
test eax, eax
je 0x10040d03
inc dword [eax + 0x36c]
push dword [0x1012414c]
lea eax, [esi*4]
push eax
call dword [0x10120078]
mov edx, dword [edi + 0xcc]
add esp, 8
mov dword [ebp + 0xc], eax
test edx, edx
je 0x10040d67
mov ecx, dword [edi + 0xc4]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0xcc]
add esp, 0xc
test ecx, ecx
je 0x10040d54
mov eax, dword [0x10124144]
test eax, eax
je 0x10040d54
dec dword [eax + 0x36c]
push dword [0x1012414c]
push ecx
call dword [0x1012007c]
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [edi + 0xcc], eax
mov dword [edi + 0xc8], esi
mov edx, dword [edi + 0xc4]
mov ecx, dword [edi + 0xcc]
mov eax, dword [edi + 4]
mov dword [ecx + edx*4], eax
inc dword [edi + 0xc4]
mov ecx, dword [edi + 0xc4]
mov eax, dword [edi + 0xcc]
push dword [eax + ecx*4 - 4]
push 0
push str.MOVE
call fcn.100481e0
mov esi, eax
add esp, 0xc
mov eax, dword [0x10124144]
cmp dword [eax + 0x1be0], esi
jne 0x10040dbf
mov dword [eax + 0x1be4], esi
cmp dword [eax + 0x1c1c], esi
jne 0x10040dce
mov byte [eax + 0x1c20], 1
mov eax, dword [0x10124144]
cmp dword [eax + 0x1bc8], esi
jne 0x10040ded
push 0
push str.MOVE
push 0xb
push esi
call fcn.10045f60
add esp, 0x10
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x248]
mov dword [edi + 0x244], ecx
add eax, 0x194c
mov dword [edi + 0x50], esi
mov dword [edi + 0x68], 0x7f7fffff
mov dword [edi + 0x6c], 0x7f7fffff
mov dword [edi + 0x70], 0x3f000000
mov dword [edi + 0x74], 0x3f000000
mov word [edi + 0xa4], 0xffff
mov dword [edi + 0xa8], 0xffffffff
mov word [edi + 0xb1], 0xf0f
mov byte [edi + 0xb0], 0xf
mov dword [edi + 0xbc], 0x7f7fffff
mov dword [edi + 0xc0], 0x7f7fffff
mov dword [edi + 0xb4], 0x7f7fffff
mov dword [edi + 0xb8], 0x7f7fffff
mov dword [edi + 0x218], 0xffffffff
mov dword [edi + 0x21c], 0xbf800000
mov dword [edi + 0x23c], 0x3f800000
mov dword [edi + 0x240], 0xffffffff
mov dword [ecx + 0x2c], eax
mov ecx, dword [edi + 0x244]
mov eax, dword [edi]
mov dword [ecx + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8