Function at 0x4a59a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406d4c
mov eax, dword [ebp + 8]
call fcn.00406d4c
xor eax, eax
push ebp
push 0x4a5c2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 5
mov eax, esi
call fcn.004a6070
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xac]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xbc]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x14]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc4]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xcc]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x1c]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd4]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x20]
call fcn.0049f920
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xec]
call fcn.00406de8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
fild qword [ebp - 0xc]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x24]
call fcn.0049f920
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xfc]
call fcn.00406de8
fild dword [ebp - 0x10]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x28]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x104]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x2c]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xf4]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xdc]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x34]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xe4]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x10c]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
call fcn.0049f920
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.00406de8
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x4c]
call fcn.0049f920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5c34
lea eax, [ebp - 4]
call fcn.00406cd8
lea eax, [ebp + 8]
call fcn.00406cd8
ret