Function at 0x56d050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dcbd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
call dword [eax + 8]
test eax, eax
jne 0x56d780
fld qword [ebp + 8]
fcomp qword [0x5e78f0]
fnstsw ax
test ah, 1
je 0x56d0a6
mov eax, dword [edi + 0x1c]
mov byte [esp + 0xf], 1
cmp eax, 0x32
jge 0x56d0b7
jmp 0x56d780
mov eax, dword [edi + 0x1c]
mov byte [esp + 0xf], 0
cmp eax, 0x1e
jl 0x56d780
cdq
mov esi, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x56d0c7
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x56d0dc
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esp + 0x38], 0x5f0760
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov ecx, edi
mov byte [esp + 0x88], 1
call fcn.0056c0e0
mov ecx, edi
call fcn.0056c0e0
mov edi, eax
mov ecx, edi
call fcn.0056ac90
test eax, eax
jne 0x56d157
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0x5c]
call fcn.0056c0e0
cmp edi, eax
je 0x56d157
mov ecx, edi
call fcn.0056ac90
test eax, eax
je 0x56d13c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], edi
mov ecx, edi
inc ebx
call fcn.0056ac90
test eax, eax
je 0x56d199
mov ecx, dword [esp + 0x40]
push edi
push ecx
lea ecx, [esp + 0x40]
call fcn.0040c9d0
mov edx, dword [esp + 0x54]
push ebx
push edx
jmp 0x56d235
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
jne 0x56d1f0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x56d248
mov eax, dword [esp + 0x40]
test eax, eax
je 0x56d248
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + eax*4 - 4]
fld qword [eax + 0x20]
fmul qword [edi + 0x18]
fld qword [eax + 0x18]
fmul qword [edi + 0x20]
fsubp st(1)
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x41
jne 0x56d1e6
mov dword [esp + 0x14], 1
jmp 0x56d248
mov dword [esp + 0x14], 0
jmp 0x56d248
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + edx*4 - 4]
fld qword [eax + 0x20]
fmul qword [edi + 0x18]
fld qword [eax + 0x18]
fmul qword [edi + 0x20]
fsubp st(1)
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x41
jne 0x56d21e
mov eax, 1
jmp 0x56d220
xor eax, eax
cmp ecx, eax
je 0x56d248
push edi
push edx
lea ecx, [esp + 0x40]
call fcn.0040c9d0
mov ecx, dword [esp + 0x54]
push ebx
push ecx
lea ecx, [esp + 0x54]
call fcn.0040c9d0
xor ebx, ebx
mov dword [esp + 0x14], 0xffffffff
fld qword [esp + 0x1c]
fadd qword [edi + 0x10]
mov edi, dword [edi + 0x5c]
mov eax, dword [esp + 0x18]
cmp edi, eax
fstp qword [esp + 0x1c]
jne 0x56d173
cmp dword [esp + 0x40], 1
jg 0x56d2ae
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x60]
push esi
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push edi
call fcn.0056d7a0
mov edi, dword [edi + 0x60]
sub esp, 0x10
mov edx, esp
mov eax, dword [esi + 8]
mov ecx, dword [edi]
push eax
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0040d0a0
jmp 0x56d35e
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
add ecx, ebx
mov ebx, 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp ecx, ebx
jle 0x56d344
mov edx, dword [esp + 0x50]
cmp dword [edx + ebx*4], 6
jge 0x56d31c
mov cl, byte [esp + 0xf]
test cl, cl
je 0x56d31c
mov edi, dword [eax + ebx*4 - 4]
mov ecx, dword [eax + ebx*4]
cmp edi, ecx
je 0x56d33b
sub esp, 0x10
mov eax, edi
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 8]
push eax
mov ecx, esi
call fcn.0040d0a0
mov eax, dword [esp + 0x3c]
mov edi, dword [edi + 0x5c]
cmp edi, dword [eax + ebx*4]
jne 0x56d2e6
jmp 0x56d33b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push ecx
mov ecx, dword [eax + ebx*4]
push edx
mov edx, dword [eax + ebx*4 - 4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.0056d7a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
inc ebx
cmp ebx, ecx
jl 0x56d2c9
mov edx, dword [ebp + 0xc]
push esi
push edx
mov edx, dword [ebp + 8]
push edx
mov edx, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x1c]
push edx
push eax
call fcn.0056d7a0
mov al, byte [esp + 0xf]
test al, al
je 0x56d3aa
mov esi, dword [esi + 8]
mov dword [esp + 0x4c], 0x5e27fc
mov eax, dword [esp + 0x50]
mov byte [esp + 0x88], 2
test eax, eax
je 0x56d38a
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], 0x5e262c
mov dword [esp + 0x38], 0x5f0760
mov dword [esp + 0x88], 3
jmp 0x56d626
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 8]
cmp ebx, dword [ecx + 0x1c]
jl 0x56d41c
mov dword [esp + 0x4c], 0x5e27fc
mov eax, dword [esp + 0x50]
mov byte [esp + 0x88], 4
test eax, eax
je 0x56d3d7
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], 0x5e262c
mov dword [esp + 0x38], 0x5f0760
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], 5
test eax, eax
je 0x56d403
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [esp + 0x24], 0x5e5218
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
cmp ebx, eax
mov byte [esp + 0x88], 6
jne 0x56d44c
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
jmp 0x56d46e
lea edx, [ebx + ebx*8]
shl edx, 3
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x28], eax
push ebx
push eax
call fcn.0042a440
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x60]
call fcn.004b6ca0
mov eax, dword [esi + 8]
mov ebx, 1
cmp eax, ebx
mov byte [esp + 0x88], 7
jle 0x56d4ea
mov edi, 0x48
mov dword [esp + 0x14], 0x10
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add eax, ecx
push eax
add eax, 0xfffffff0
push eax
lea ecx, [edi + edx]
call fcn.004b8810
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax]
lea edx, [ecx + 0x28]
push edx
call fcn.004b8750
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax + 0x28]
push ecx
lea ecx, [esp + 0x64]
call fcn.004b6dd0
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 8]
inc ebx
add edx, 0x10
add edi, 0x48
cmp ebx, eax
mov dword [esp + 0x14], edx
jl 0x56d498
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x28]
shl ebx, 4
push eax
lea edx, [ebx + eax - 0x10]
push edx
call fcn.004b8810
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 0x28]
push eax
call fcn.004b8750
mov ecx, dword [esp + 0x28]
add ecx, 0x28
push ecx
lea ecx, [esp + 0x64]
call fcn.004b6dd0
fld qword [ebp + 8]
fld qword [esp + 0x60]
fsub st(1)
or edi, 0xffffffff
mov ecx, esi
push edi
push 0
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fsub st(1)
fstp qword [esp + 0x70]
fld qword [esp + 0x78]
fadd st(1)
fstp qword [esp + 0x78]
fld qword [esp + 0x80]
fadd st(1)
fstp qword [esp + 0x80]
fstp st(0)
call fcn.0054a8d0
lea edx, [esp + 0x24]
push esi
push edx
push 1
call fcn.0056f1d0
add esp, 0xc
test al, al
je 0x56d650
mov ebx, dword [esp + 0x10]
push 0
push esi
push 0
push 0
push 0
push 0
mov ecx, ebx
call fcn.0056cea0
test al, al
je 0x56d654
mov esi, dword [esi + 8]
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 6
call fcn.0042bd50
mov dword [esp + 0x24], 0x5e5218
mov edi, dword [esp + 0x28]
mov byte [esp + 0x88], 8
test edi, edi
je 0x56d5e5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x56d5dc
lea ebx, [eax]
push 0
mov ecx, edi
call fcn.0042a3a0
add edi, 0x48
dec ebx
jne 0x56d5c9
mov edi, dword [esp + 0x28]
push edi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x50]
mov byte [esp + 0x88], 9
test eax, eax
je 0x56d60f
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], 0x5f0760
mov dword [esp + 0x88], 0xa
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x56d637
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esp + 0x10]
push edi
push 0
mov ecx, esi
call fcn.0054a8d0
lea eax, [esp + 0x24]
push esi
push eax
push 1
call fcn.0056f1d0
add esp, 0xc
test al, al
je 0x56d72b
push 0
push esi
push 0
push 0
push 0
push 0
mov ecx, ebx
call fcn.0056cea0
test al, al
je 0x56d72b
mov esi, dword [esi + 8]
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 6
call fcn.0042bd50
mov dword [esp + 0x24], 0x5e5218
mov eax, dword [esp + 0x28]
mov byte [esp + 0x88], 0xb
test eax, eax
je 0x56d6d4
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call fcn.005273e0
mov edx, dword [esp + 0x28]
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x50]
mov byte [esp + 0x88], 0xc
test eax, eax
je 0x56d6fe
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x88], edi
call fcn.00527300
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push esi
push 0
push 0
push 0
push 0
mov ecx, ebx
call fcn.0056cea0
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 6
call fcn.0042bd50
lea ecx, [esp + 0x24]
mov byte [esp + 0x88], 1
call fcn.00429fa0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x88], 0
call fcn.0040a7f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x88], edi
call fcn.00527300
mov ecx, dword [esp + 0x80]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc