Function at 0x1004a800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059df3
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x1006b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebx + 4]
mov dword [ebp - 0x20], ebx
push 0x48
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10056caf
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
mov dword [ebp - 4], 0
lea edi, [ebx + 0x10]
mov dword [ebp - 0x18], edi
mov dword [edi], 0
push 0x14
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10056caf
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
mov dword [edi], 0x3f800000
push dword [edi + 4]
push 0x10
call fcn.10046200
mov byte [ebp - 4], 3
lea edi, [ebx + 0x30]
mov dword [ebp - 0x10], edi
mov dword [edi], 0
push 0x1c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10056caf
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 5
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
mov dword [edi], 0x3f800000
push dword [edi + 4]
push 0x10
call fcn.10046200
mov byte [ebp - 4], 6
lea edi, [ebx + 0x50]
mov dword [ebp - 0x24], edi
mov dword [edi], 0
push 0xc
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10056caf
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 8
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
mov dword [edi], 0x3f800000
push dword [edi + 4]
push 0x10
call fcn.10046200
mov byte [ebp - 4], 9
mov dword [ebx], 0
mov dword [ebx + 0xc], 1
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov ebx, dword [ecx]
test ebx, ebx
je 0x1004a9da
mov edi, dword [ebx]
lea ecx, [ebx + 0x28]
call fcn.1004aea0
lea ecx, [ebx + 8]
call fcn.1004ae40
push 0x48
push ebx
call fcn.10056ce4
add esp, 8
mov ebx, edi
test edi, edi
jne 0x1004a9b4
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
push 0x40
push 0
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
lea eax, [ebp - 0x64]
push eax
mov dword [esi + 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.1004acf0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.1004cb10
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.1004aea0
lea ecx, [ebp - 0x64]
call fcn.1004ae40
push 0x40
lea eax, [ebp - 0x64]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.1004acf0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.1004cb10
lea ecx, [ebp - 0x44]
call fcn.1004aea0
lea ecx, [ebp - 0x64]
call fcn.1004ae40
mov ecx, dword [ebp - 0x18]
call fcn.10045aa0
mov ecx, dword [ebp - 0x10]
call fcn.10045a20
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebx + 0x54]
mov edx, dword [edi]
cmp edx, edi
je 0x1004aa96
nop dword [eax]
nop word [eax + eax]
mov esi, dword [edx + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov edx, dword [edx]
cmp edx, edi
jne 0x1004aa80
lea ecx, [ebx + 0x50]
call fcn.100459a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret