Function at 0x40f420
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 0x53ece8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push edi
mov eax, dword [0x591a60]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push 0x56a1ae
lea ecx, [esp + 0x34]
call fcn.00403e00
mov dword [esp + 0x80], 0
mov eax, dword [esi + 0x364]
push eax
lea ecx, [esp + 0x34]
push 0x56a1b4
push ecx
call fcn.00401640
mov edx, dword [esp + 0x3c]
add esp, 0xc
push edx
push 1
push 0
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x368]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401640
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 1
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x36c]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push str._4.4f
push edx
call fcn.00401640
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 2
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x370]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401640
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 3
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x378]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401640
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 4
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x380]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push str._4.4f
push edx
call fcn.00401640
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 5
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x388]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401640
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 6
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x374]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401640
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 7
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x37c]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push str._4.4f
push edx
call fcn.00401640
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 8
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x384]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401640
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 9
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x38c]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401640
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 0xa
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x370]
fdiv dword [esi + 0x374]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.00531400
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x56c170]
fstp dword [esp + 0x3c]
fld dword [esi + 0x378]
fdiv dword [esi + 0x37c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.00531400
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x56c170]
fstp dword [esp + 0x38]
fld dword [esi + 0x380]
fdiv dword [esi + 0x384]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.00531400
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x56c170]
fstp dword [esp + 0x40]
fld dword [esi + 0x388]
fdiv dword [esi + 0x38c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.00531400
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
sub esp, 8
fmul qword [0x56c170]
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 [0x56c1a0]
fstp qword [esp]
push str._4.4f
push edx
call fcn.00401640
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 0xb
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x394]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push str._4.4f
push ecx
call fcn.00401640
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 0xc
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x390]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str._4.4f
push eax
call fcn.00401640
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 0xd
lea ecx, [esi + 0x2a8]
call fcn.00423955
mov edx, dword [esi + 0x398]
push edx
push 0x56a1b4
lea eax, [esp + 0x38]
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0xe
lea ecx, [esi + 0x2a8]
call fcn.00423955
mov edx, dword [esi + 0x39c]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0xf
lea ecx, [esi + 0x2a8]
call fcn.00423955
movzx edx, byte [esi + 0x3a9]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x10
lea ecx, [esi + 0x2a8]
call fcn.00423955
movzx edx, byte [esi + 0x3aa]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x11
lea ecx, [esi + 0x2a8]
call fcn.00423955
movzx edx, byte [esi + 0x3ab]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x12
lea ecx, [esi + 0x2a8]
call fcn.00423955
mov edx, dword [esi + 0x3a0]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x13
lea ecx, [esi + 0x2a8]
call fcn.00423955
mov edx, dword [esi + 0x3a4]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x14
lea ecx, [esi + 0x2a8]
call fcn.00423955
movzx edx, byte [esi + 0x3a8]
push edx
lea eax, [esp + 0x34]
push 0x56a1b4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push 1
push 0x15
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x3ac]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x56a1b0
push edx
call fcn.00401640
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 0x16
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x3b0]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x38]
push 0x56a1b0
push ecx
call fcn.00401640
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
push 1
push 0x17
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x3b4]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push 0x56a1b0
push eax
call fcn.00401640
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ecx
push 1
push 0x18
lea ecx, [esi + 0x2a8]
call fcn.00423955
fld dword [esi + 0x3b8]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x38]
push 0x56a1b0
push edx
call fcn.00401640
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push 1
push 0x19
lea ecx, [esi + 0x2a8]
call fcn.00423955
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 0x40fa35
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