Function at 0x40ec20
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x53cf78
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push edi
mov eax, dword [0x58fa50]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push 0x5680fe
lea ecx, [esp + 0x34]
call fcn.00403bc0
mov dword [esp + 0x80], 0
mov eax, dword [esi + 0x35c]
push eax
lea ecx, [esp + 0x34]
push 0x568104
push ecx
call fcn.00401650
mov edx, dword [esp + 0x3c]
add esp, 0xc
push edx
push 1
push 0
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x360]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401650
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 1
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x364]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push str._4.4f
push edx
call fcn.00401650
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 2
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x368]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401650
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 3
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x370]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401650
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 4
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x378]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push str._4.4f
push edx
call fcn.00401650
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 5
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x380]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401650
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 6
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x36c]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401650
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 7
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x374]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push str._4.4f
push edx
call fcn.00401650
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 8
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x37c]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401650
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 9
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x384]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401650
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 0xa
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x368]
fdiv dword [esi + 0x36c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.0052f780
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x56a0c0]
fstp dword [esp + 0x3c]
fld dword [esi + 0x370]
fdiv dword [esi + 0x374]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.0052f780
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x56a0c0]
fstp dword [esp + 0x38]
fld dword [esi + 0x378]
fdiv dword [esi + 0x37c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.0052f780
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x56a0c0]
fstp dword [esp + 0x40]
fld dword [esi + 0x380]
fdiv dword [esi + 0x384]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.0052f780
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
sub esp, 8
fmul qword [0x56a0c0]
lea edx, [esp + 0x38]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fadd dword [esp + 0x44]
fadd dword [esp + 0x48]
fadd dword [esp + 0x3c]
fmul qword [0x56a0f0]
fstp qword [esp]
push str._4.4f
push edx
call fcn.00401650
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 0xb
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x38c]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401650
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 0xc
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x388]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401650
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 0xd
lea ecx, [esi + 0x2a4]
call fcn.0042276a
mov edx, dword [esi + 0x390]
push edx
push 0x568104
lea eax, [esp + 0x38]
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0xe
lea ecx, [esi + 0x2a4]
call fcn.0042276a
mov edx, dword [esi + 0x394]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0xf
lea ecx, [esi + 0x2a4]
call fcn.0042276a
movzx edx, byte [esi + 0x3a1]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x10
lea ecx, [esi + 0x2a4]
call fcn.0042276a
movzx edx, byte [esi + 0x3a2]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x11
lea ecx, [esi + 0x2a4]
call fcn.0042276a
movzx edx, byte [esi + 0x3a3]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x12
lea ecx, [esi + 0x2a4]
call fcn.0042276a
mov edx, dword [esi + 0x398]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x13
lea ecx, [esi + 0x2a4]
call fcn.0042276a
mov edx, dword [esi + 0x39c]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x14
lea ecx, [esi + 0x2a4]
call fcn.0042276a
movzx edx, byte [esi + 0x3a0]
push edx
lea eax, [esp + 0x34]
push 0x568104
push eax
call fcn.00401650
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x15
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x3a4]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x568100
push edx
call fcn.00401650
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 0x16
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x3a8]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push 0x568100
push ecx
call fcn.00401650
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 0x17
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x3ac]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push 0x568100
push eax
call fcn.00401650
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 0x18
lea ecx, [esi + 0x2a4]
call fcn.0042276a
fld dword [esi + 0x3b0]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x568100
push edx
call fcn.00401650
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 0x19
lea ecx, [esi + 0x2a4]
call fcn.0042276a
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f235
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret