Function at 0x57d2d0
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dd82c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ec
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 8
push edi
push eax
lea ecx, [esp + 0xc4]
call fcn.0051dd70
mov ecx, dword [ebp + 0xc]
xor edi, edi
add ecx, 8
mov dword [esp + 0x400], edi
push ecx
lea ecx, [esp + 0x18c]
call fcn.0051dd70
lea ecx, [esp + 0x80]
mov byte [esp + 0x400], 1
call fcn.0056b6a0
lea ecx, [esp + 0x250]
mov byte [esp + 0x400], 2
call fcn.00589140
mov esi, 0x5e79c4
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x400], 4
call fcn.0058dea0
lea edx, [esp + 0x80]
lea ecx, [esp + 0xc0]
push edx
push edi
mov byte [esp + 0x408], 5
call fcn.0056fd10
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x2b8]
push eax
call fcn.0058e080
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x48]
call fcn.004b6cb0
lea ecx, [esp + 0x188]
mov byte [esp + 0x400], 6
call fcn.0056c990
fstp qword [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.0056c990
fadd qword [esp + 0x14]
lea ecx, [esp + 0x44]
fstp qword [0x62aae8]
call fcn.004b71f0
fstp qword [0x62aae0]
lea edx, [esp + 0xe8]
mov ecx, 0x62a9e0
push edx
call fcn.004b6d90
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x174]
mov edx, dword [esp + 0x178]
mov dword [0x62aad0], eax
mov eax, dword [esp + 0x17c]
mov dword [0x62aad4], ecx
lea ecx, [esp + 0xc0]
mov dword [0x62aad8], edx
mov dword [0x62aadc], eax
call fcn.0056c990
fmul qword [0x62aad0]
lea ecx, [esp + 0xc0]
fstp qword [0x62aad0]
call fcn.0056c990
fmul qword [0x62aad8]
fstp qword [0x62aad8]
lea ecx, [esp + 0x80]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.005776c0
fld qword [esp + 0x4c]
fsub qword [0x5e2640]
sub esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fsub qword [0x5e2640]
fstp qword [esp + 0x70]
fld qword [esp + 0x78]
fadd qword [0x5e2640]
fstp qword [esp + 0x78]
fld qword [esp + 0x80]
fadd qword [0x5e2640]
fstp qword [esp + 0x80]
call fcn.004b6cb0
lea ecx, [esp + 0x1a8]
lea edx, [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x278]
call fcn.00589240
push 0x58be40
push edi
push 0x579640
push edi
push edi
push 0x3ff00000
lea eax, [esp + 0x2d0]
push edi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x1a8]
push ecx
push edx
lea ecx, [esp + 0x278]
call fcn.0058c4f0
test al, al
je 0x57d91e
lea eax, [esp + 0x80]
lea ecx, [esp + 0x188]
push eax
push edi
call fcn.0056fd10
lea ecx, [esp + 0x188]
mov dword [esp + 0x14], edi
push ecx
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0058e080
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x57d821
mov edx, dword [esp + 0x24]
mov ebx, dword [ebp + 0x18]
fld qword [esp + 0x14]
fld qword [esp + 0x34]
lea esi, [edx + 0x20]
mov dword [esp + 0x3c], esi
fld qword [esi]
fsub st(1)
sub esp, 8
lea ecx, [esp + 0x190]
sub esp, 8
fstp qword [esp + 8]
fstp st(0)
fld qword [esi - 8]
fsub st(1)
fstp qword [esp]
fstp st(0)
call fcn.0051df60
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x80]
push eax
call fcn.004b6d90
lea ecx, [esp + 0x188]
call fcn.0056c990
fstp qword [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.0056c990
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x174]
fadd qword [esp + 0x14]
mov eax, dword [esp + 0x178]
mov dword [0x62aad0], ecx
mov ecx, dword [esp + 0x17c]
mov dword [0x62aad4], edx
mov dword [0x62aadc], ecx
lea ecx, [esp + 0xc0]
fstp qword [esp + 0x74]
mov dword [0x62aad8], eax
call fcn.0056c990
fmul qword [0x62aad0]
lea ecx, [esp + 0xc0]
fstp qword [0x62aad0]
call fcn.0056c990
fmul qword [0x62aad8]
lea ecx, [esp + 0x188]
fstp qword [0x62aad8]
call fcn.0056c990
fmul qword [esp + 0x238]
lea ecx, [esp + 0x188]
fadd qword [0x62aad0]
fstp qword [0x62aad0]
call fcn.0056c990
fmul qword [esp + 0x240]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], edi
cmp eax, edi
fadd qword [0x62aad8]
fstp qword [0x62aad8]
jle 0x57d7f7
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
lea ecx, [eax + 8]
call fcn.0056c990
fadd qword [esp + 0x74]
lea edx, [esp + 0x64]
lea ecx, [esp + 0x2b8]
push edx
lea edx, [esp + 0x84]
fstp qword [0x62aae8]
mov eax, dword [edi]
push eax
push ecx
push edx
call fcn.0057d9e0
add esp, 0x10
test al, al
je 0x57d7d6
push 0xc0
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x400], 7
je 0x57d6fe
mov ecx, eax
call fcn.005773c0
mov esi, eax
jmp 0x57d700
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov edx, dword [edi]
lea eax, [esi + 0x90]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov edx, dword [esp + 0x68]
mov byte [esp + 0x400], 6
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x238]
lea eax, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x23c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x240]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x244]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x170]
lea eax, [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [esp + 0x174]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x178]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x17c]
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0057c1c0
cmp eax, 1
jne 0x57d7ca
mov edi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [edi + 1]
push eax
call fcn.0046d900
mov ecx, dword [ebx + 4]
mov dword [ecx + edi*4], esi
mov eax, dword [ebx + 8]
cmp eax, 4
jg 0x57d8d8
mov edi, dword [esp + 0x34]
jmp 0x57d7d6
test esi, esi
je 0x57d7d6
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x14]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edi
jl 0x57d69a
mov esi, dword [esp + 0x3c]
xor edi, edi
fld qword [esi - 8]
fld qword [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
add esi, 0x40
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], eax
jl 0x57d585
fstp st(0)
fstp st(0)
mov esi, 0x5e79c4
lea ecx, [esp + 0x44]
mov byte [esp + 0x400], 5
call fcn.0042bd50
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x400], 4
call fcn.0058df70
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x400], 9
cmp eax, edi
je 0x57d863
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x250]
mov dword [esp + 0x20], 0x5e262c
mov byte [esp + 0x400], 2
call fcn.005891c0
lea ecx, [esp + 0x80]
mov byte [esp + 0x400], 1
call fcn.004b7310
lea ecx, [esp + 0x188]
mov byte [esp + 0x400], 0
call fcn.0051ddf0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x400], 0xffffffff
call fcn.0051ddf0
mov eax, 1
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x44]
mov byte [esp + 0x400], 5
call fcn.0042bd50
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x400], 4
call fcn.0058df70
mov dword [esp + 0x20], 0x5e79c4
mov eax, dword [esp + 0x24]
mov byte [esp + 0x400], 8
test eax, eax
je 0x57d863
jmp 0x57d85a
lea ecx, [esp + 0x44]
mov byte [esp + 0x400], 5
call fcn.0042bd50
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x400], 4
call fcn.0058df70
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x400], 0xa
cmp eax, edi
je 0x57d960
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x250]
mov dword [esp + 0x20], 0x5e262c
mov byte [esp + 0x400], 2
call fcn.005891c0
lea ecx, [esp + 0x80]
mov byte [esp + 0x400], 1
call fcn.004b7310
lea ecx, [esp + 0x188]
mov byte [esp + 0x400], 0
call fcn.0051ddf0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x400], 0xffffffff
call fcn.0051ddf0
mov ecx, dword [esp + 0x3f8]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret