Function at 0x4a46e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4a46f1
xchg dword [ebp - 4], ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4a4a03
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0xc]
call fcn.0049f920
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0x10]
call fcn.0049f920
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0x14]
call fcn.0049f920
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0x18]
call fcn.0049f920
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0x1c]
call fcn.0049f920
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0x20]
call fcn.0049f920
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x5c]
call fcn.00406de8
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebx + 0x24]
call fcn.0049f920
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00406de8
fild dword [ebp - 0x28]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0x28]
call fcn.0049f920
lea eax, [ebp - 0x30]
call fcn.00405578
push eax
lea eax, [ebp - 0x34]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x6c]
call fcn.00406de8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x2c]
call fcn.0049f9c4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x88]
call fcn.00406de8
fild dword [ebp - 0x28]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0x30]
call fcn.0049f920
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [eax]
call dword [eax + 0x90]
call fcn.00406de8
cmp word [ebp - 0x3c], 0
je 0x4a4965
push 0x3ff00000
push 0
mov eax, dword [ebx + 0x34]
call fcn.0049f920
jmp 0x4a4971
push 0
push 0
mov eax, dword [ebx + 0x34]
call fcn.0049f920
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
call fcn.00406cd8
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0x24]
call fcn.00406de8
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [eax]
call dword [eax + 0x98]
call fcn.00406de8
fild dword [ebp - 0x28]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0x38]
call fcn.0049f920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4a0a
lea eax, [ebp - 0x44]
mov edx, dword [0x4309e4]
mov ecx, 2
call fcn.00405ca0
lea eax, [ebp - 0x38]
mov edx, dword [0x4309e4]
mov ecx, 2
call fcn.00405ca0
lea eax, [ebp - 0x30]
call fcn.00405578
lea eax, [ebp - 0x2c]
call fcn.00406cd8
lea eax, [ebp - 0x24]
mov edx, dword [0x4309e4]
mov ecx, 7
call fcn.00405ca0
ret