Function at 0x40d2b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [0x42578c]
xor eax, eax
push ebp
push 0x40d64e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [0x425768]
fstp qword [eax]
wait
call fcn.00405fe8
mov edx, dword [0x425764]
mov dword [edx], eax
mov eax, dword [0x425760]
mov byte [eax], 1
mov eax, dword [0x425768]
push dword [eax + 4]
push dword [eax]
call fcn.00405ff0
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [0x42508c]
mov dword [edx], eax
mov ecx, 0xa
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edx, dword [0x4250a0]
mov dword [edx], eax
mov ecx, 0xf
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [0x4250a4]
mov dword [edx], eax
mov ecx, 0x14
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [0x4250b4]
mov dword [edx], eax
mov ecx, 0x19
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov edx, dword [0x42509c]
mov dword [edx], eax
mov ecx, 0x1e
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [0x4250ac]
mov dword [edx], eax
mov ecx, 0x23
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov edx, dword [0x425098]
mov dword [edx], eax
mov ecx, 0x28
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [0x4250b0]
mov dword [edx], eax
mov ecx, 0x2d
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [0x4250a8]
mov dword [edx], eax
mov ecx, 0x32
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x425094]
mov dword [edx], eax
mov ecx, 0x37
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [0x425788]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [0x425090]
mov dword [edx], eax
mov ecx, 0x3c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea edx, [ebp - 0x10]
mov eax, dword [ebx + reloc.Common.bpl__System_initialization_qqrv]
call fcn.00401ca8
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 4]
call fcn.00401158
mov ecx, eax
mov eax, dword [esi]
pop edx
mov edi, dword [eax]
call dword [edi + 0x40]
mov edx, dword [0x425074]
mov dword [edx], eax
mov ecx, 0x41
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be34
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [0x42577c]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [0x425080]
mov dword [edx], eax
mov eax, dword [0x425774]
mov byte [eax + 8], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov edx, dword [0x425758]
mov eax, dword [esi]
mov ebx, dword [eax]
call dword [ebx + 0x48]
mov eax, dword [0x425754]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [0x425750]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [0x42506c]
mov dword [edx], eax
call fcn.00401978
fmul dword [0x40d660]
fmul dword [0x40d664]
mov eax, dword [0x42506c]
mov eax, dword [eax]
fld qword [eax + 0x28]
fmul dword [0x40d660]
fmul dword [0x40d664]
mov eax, dword [0x42506c]
mov eax, dword [eax]
fild dword [eax + 0x20]
faddp st(1)
fsubrp st(1)
call fcn.00401030
test eax, eax
jg 0x40d5c8
mov eax, dword [0x42506c]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x30], edx
jmp 0x40d5e0
imul edx, eax, 0xea60
mov eax, dword [0x421aec]
mov eax, dword [eax]
mov eax, dword [eax + reloc.Common.bpl__System_initialization_qqrv]
call fcn.00402270
mov eax, dword [0x425088]
cmp byte [eax + 0x1ff], 0
je 0x40d615
mov eax, dword [0x425070]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [0x425070]
mov edx, dword [edx]
mov eax, dword [0x425794]
mov eax, dword [eax]
call fcn.00405ee0
lea eax, [ebp - 4]
call fcn.00401158
mov edx, eax
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov edx, dword [0x425064]
mov dword [edx], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d655
lea eax, [ebp - 0x10]
call fcn.00401158
lea eax, [ebp - 4]
call fcn.00401158
ret