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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dd761
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3d4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebx + 8]
lea ecx, [esp + 0x170]
push eax
call fcn.0051dd70
mov ecx, dword [ebp + 0x10]
xor edi, edi
add ecx, 8
mov dword [esp + 0x3e8], edi
push ecx
lea ecx, [esp + 0xac]
call fcn.0051dd70
lea ecx, [esp + 0x68]
mov byte [esp + 0x3e8], 1
call fcn.0056b6a0
lea ecx, [esp + 0x238]
mov byte [esp + 0x3e8], 2
call fcn.00589140
mov dword [esp + 0x20], 0x5e79c4
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x3e8], 4
call fcn.0058dea0
lea edx, [esp + 0x68]
lea ecx, [esp + 0x170]
push edx
push edi
mov byte [esp + 0x3f0], 5
call fcn.0056fd10
lea eax, [esp + 0x170]
lea ecx, [esp + 0x2a0]
push eax
call fcn.0058e080
lea ecx, [esp + 0x68]
lea edx, [esp + 0x198]
push ecx
push edx
call fcn.005776c0
add esp, 8
lea eax, [esp + 0x198]
mov ecx, 0x62a9e0
push eax
call fcn.004b6d90
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004b71f0
fstp qword [0x62aae0]
lea ecx, [esp + 0xa8]
call fcn.0056c990
fstp qword [esp + 0x3c]
lea ecx, [esp + 0x170]
call fcn.0056c990
fadd qword [esp + 0x3c]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
fstp qword [0x62aae8]
call fcn.004b6cb0
lea ecx, [esp + 0xc8]
lea edx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x260]
call fcn.00589240
push 0x58be20
push edi
push 0x579700
push edi
push edi
push 0x3ff00000
lea eax, [esp + 0x2b8]
push edi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0xc8]
push ecx
push edx
lea ecx, [esp + 0x260]
call fcn.0058c4f0
test al, al
je 0x57ce4c
lea eax, [esp + 0x68]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.0056fd10
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc], edi
push ecx
lea ecx, [esp + 0x2a4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0058e080
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
cmp eax, edi
jle 0x57cd70
mov eax, dword [esp + 0x24]
fld qword [esp + 0xc]
fld qword [esp + 0x34]
lea edi, [eax + 0x20]
lea esi, [eax + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
fld qword [edi]
fsub st(1)
sub esp, 8
lea ecx, [esp + 0xb0]
sub esp, 8
fstp qword [esp + 8]
fstp st(0)
fld qword [esi]
fsub st(1)
fstp qword [esp]
fstp st(0)
call fcn.0051df60
lea edx, [esp + 0x198]
lea ecx, [esp + 0x68]
push edx
call fcn.004b6d90
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x68]
push eax
call fcn.004b6dd0
lea ecx, [esp + 0x68]
call fcn.004b7060
fcomp qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x57cd43
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x170]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.0057db60
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x34], 0
jle 0x57cd43
mov edi, dword [ebp + 0x14]
jmp 0x57cafc
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [eax + 8]
call fcn.0056c990
fstp qword [esp + 0xc]
lea ecx, [esp + 0xa8]
call fcn.0056c990
fadd qword [esp + 0xc]
lea ecx, [esp + 0x170]
fstp qword [esp + 0xc]
call fcn.0056c990
fadd qword [esp + 0xc]
mov edx, dword [ebp + 0x10]
fstp qword [0x62aae8]
mov ecx, dword [edi]
push ecx
push edx
push ebx
call fcn.0057c550
fstp qword [0x62aae0]
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x68]
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x50], edx
call fcn.004b7060
fld qword [esp + 0x4c]
fcompp
fnstsw ax
test ah, 1
je 0x57cb7b
lea ecx, [esp + 0x68]
call fcn.004b7060
jmp 0x57cb80
mov eax, dword [edi]
fld qword [eax + 0x58]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x50]
fstp qword [esp + 0xc]
mov eax, dword [ecx + 0x54]
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.004b7040
fld qword [esp + 0x44]
fcompp
fnstsw ax
test ah, 1
je 0x57cbb5
lea ecx, [esp + 0x68]
call fcn.004b7040
jmp 0x57cbba
mov ecx, dword [edi]
fld qword [ecx + 0x50]
fmul qword [esp + 0xc]
fcomp qword [0x62aae0]
fnstsw ax
test ah, 1
je 0x57cd21
mov eax, dword [edi]
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x58]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x2ac]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.0057cf00
fcomp qword [0x62aae0]
add esp, 0x20
fnstsw ax
test ah, 1
je 0x57cd21
push 0xc0
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x3e8], 6
je 0x57cc37
mov ecx, eax
call fcn.005773c0
mov esi, eax
jmp 0x57cc39
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ecx
mov edx, dword [edi]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x58]
lea eax, [esi + 0x90]
mov byte [esp + 0x3e8], 5
mov dword [eax], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x158]
lea eax, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x15c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x160]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x164]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x220]
lea eax, [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [esp + 0x224]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x228]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x22c]
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0057c1c0
cmp eax, 1
jne 0x57cd15
mov ecx, dword [ebp + 0x24]
push 0xffffffffffffffff
mov ebx, dword [ecx + 8]
lea eax, [ebx + 1]
push eax
call fcn.0046d900
mov ecx, dword [ebp + 0x24]
mov eax, 6
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + ebx*4], esi
mov edx, dword [ecx + 0x100]
cmp edx, eax
jl 0x57cd21
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x100], eax
jge 0x57ce17
jmp 0x57cd21
test esi, esi
je 0x57cd21
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x18]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x57caf9
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
fld qword [esi]
fld qword [edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add esi, 0x40
add edi, 0x40
inc eax
mov dword [esp + 0x18], esi
cmp eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
jl 0x57ca66
fstp st(0)
fstp st(0)
xor edi, edi
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x3e8], 4
call fcn.0058df70
mov dword [esp + 0x20], 0x5e79c4
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3e8], 8
cmp eax, edi
je 0x57cda5
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x238]
mov dword [esp + 0x20], 0x5e262c
mov byte [esp + 0x3e8], 2
call fcn.005891c0
lea ecx, [esp + 0x68]
mov byte [esp + 0x3e8], 1
call fcn.004b7310
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3e8], 0
call fcn.0051ddf0
lea ecx, [esp + 0x170]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.0051ddf0
mov eax, 1
mov ecx, dword [esp + 0x3e0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x3e8], 4
call fcn.0058df70
mov dword [esp + 0x20], 0x5e79c4
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3e8], 7
test eax, eax
je 0x57cda5
jmp 0x57cd9c
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x3e8], 4
call fcn.0058df70
mov dword [esp + 0x20], 0x5e79c4
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3e8], 9
cmp eax, edi
je 0x57ce81
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x238]
mov dword [esp + 0x20], 0x5e262c
mov byte [esp + 0x3e8], 2
call fcn.005891c0
lea ecx, [esp + 0x68]
mov byte [esp + 0x3e8], 1
call fcn.004b7310
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3e8], 0
call fcn.0051ddf0
lea ecx, [esp + 0x170]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.0051ddf0
mov ecx, dword [esp + 0x3e0]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret